Message Sets: General rules: TDS message model integrity
General rules govern each value that you can set for the Data Element Separation property of a type.
The following rules also apply:
- If you have set the parent Type
Composition to Choice,
and the parent Data Element Separation property
to Variable Length Elements
Delimited, All
Elements Delimited, Fixed Length, or Fixed Length AL3:
- You must not set the Type Composition to Message for any child complex types.
- You must not set the Data Element Separation method to Tagged Delimited or Tagged Fixed Length for any child complex types.
- If you have set the type's Data Element Separation property to Fixed Length, Fixed Length AL3, or Tagged Fixed Length, you must set either the Length or Length Value Of property for all simple elements under this parent, and also for all complex elements with a simple content and compound elements.
- For a Choice in a fixed-length environment (Data Element Separation set to Fixed Length, Tagged Fixed Length, or Fixed Length AL3), length references are not valid. Use element lengths.
- Elements specified in a Length Value Of property must be simple elements of type INTEGER, they must exist in the same structure as the referring element, and they must appear before the referring element in that structure.
- Complex types with simple content and Compound elements must have an empty Length Value Of type member property. Otherwise, Length Value Of element would occur after the referring element in the parent structure, which is disallowed by the previous rule.
- Complex types with simple content cannot have a separation type of Use Data Pattern.
- Compound elements cannot have a separation type of Use Data Pattern.
- Regardless of the setting of the type's Data Element Separation property, if the type of a simple element is BINARY, you must set either the Length or Length Value Of property.
- For fixed-length elements, the Justification property must be set to something other than Not Applicable, and the Padding Character property cannot be an empty value.
- If any element within a message has its Interpret Element Value property set to Message Key, the Message Key property must be set for all messages within the message set.
- If you have set the Repeat property
in the type member to Yes,
you must set a value for the Max
Occurs property in the following two situations:
- If you have defined an element as a member of a complex type that has the property Data Element Separation set to Fixed Length.
- If you have defined a fixed-length element as a member of a complex type that has the property Data Element Separation set to Variable Length Elements Delimited.