Unable to attach object with empty XMLName property. (Error 2101)

The XMLName field cannot be empty when adding an XMLTable object or an XMLField object to a collection.

  • Make sure that the XMLName property for the XMLField object or the XMLTable object is set to a valid value, and that this value is used as the key.