The structure of the EDI is as follows:
The “REF” segments are situational.
The enumerated value for first REF is “AA” and for second “REF” is “BB”.
The records are created with the data dictionary with first REF as REF and second REF as REF_1 with their respective enumerated values.
A flat file schema is built with the record references from the data dictionary, and the structure looks as given above.
The problem is when the data is submitted with NM1 and only one REF with enumerated value of the second REF, it throws an error for the first REF indicating incorrect value for REF. But actually the conditions are valid as the REFs are situational, and the data has to parse correctly.
Unchecked the “Ordered” in schema for the NM1 but does not solve the problem.
As given in the “webMethods_Flat_File_Schema_Developers_Guide.pdf” for :
Ordered - Select the check box to require that the child records of this record appear in the flat file in the order that they appear in the flat file schema. This property applies only to records, not composites or fields.
Here REFs are records.
what may be the solution for this problem.