The error "Structure name size (##) must equal the sum of the field sizes (##)..." can occur when attempting to export from the SMC or when running genxml.
The most likely problem is that the Repository “Excluded by Web” flag (shown below) is used incorrectly.
The Excluded by Web feature should be used ONLY on overlay fields to alter the default behavior. (See "How overlays are handled.") Selecting this option omits the field when you run genxml or export the SMC to an XML file. Using it on non-overlay fields (or using it incorrectly on overlay fields) causes a mismatch between the size of the structure as reported by Repository (and stored in the SMC) and the size of the fields actually included in the generated XML file. When this happens you see the above error.
If you\'ve used Excluded by Web on a non-overlay field, to resolve the problem, open Repository and examine the structure mentioned in the error message to find the field or fields with “Excluded by Web” checked, and then uncheck the option.
If you\'ve used Excluded by Web on an overlay field, verify that the sum of the sizes of all included fields equals the total size of the structure are shown at the bottom of the Field Definitions list for that structure in Repository.