Go Back

“Structure <> must equal the sum of the field sizes. Is “Excluded by Web” used correctly?” error

Article Number: 2493
First Published:
Modified:
Recent Activity:
Views: 12
OS: Windows, Unix, OpenVMS
Product: Repository, xfServerPlus

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.



THE INFORMATION PROVIDED TO YOU IN THIS SERVICE IS FOR YOUR USE ONLY. THE INFORMATION MAY HAVE BEEN DEVELOPED INTERNALLY BY SYNERGEX OR BY EXTERNAL SOURCES. SYNERGEX MAKES NO WARRANTIES, EXPRESS OR IMPLIED, REGARDING THIS INFORMATION, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SYNERGEX BE LIABLE FOR ANY DAMAGES OR LOSSES INCURRED BY YOU IN USING OR RELYING ON THIS INFORMATION, INCLUDING WITHOUT LIMITATION GENERAL DAMAGES, DIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, OR LOSS OF PROFITS, EVEN IF SYNERGEX HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Please log in to comment on this article.