Validation Errors
If the processing rule triggered by a transmission document is set to validate the structure of the document, and if any of the following errors occur, splitOption will not split the transmission:
Data Error
The message structure is invalid, or a field contains an invalid value, or a mandatory field is missing. These errors are detected by the wm.b2b.edi:convertToValues service when its validate flag is set to true. This only applies to errors within the STX, BAT, MHD, MTR, EOB, and END segments. Errors within the MHD and MTR segments will not prevent splitOption from splitting the entire transmission.
Missing or Invalid RSGRSG Message
When ANAA is specified in the STX segment and:
There is no RSGRSG
The control number in the RSGRSG does not match the control number in STX
The Sender Reference in RSGRSG does not match the Sender Reference in STX
When ANAA is not specified in STX segment and:
RSGRSG is present
Document Count Mismatch
Number of messages or batches between STX/END does not match reported count in END segment
Number of messages between BAT/EOB does not match reported count in EOB segment
Number of segments between MHD/MTR segments (including the MHD/MTR segments) does not match the reported count in MTR segment
Invalid MHD Sequence Number
The MHD segment contains a sequence number. The transmission will only be split if the first MHD segment is 1 and all subsequent MHD segment sequence numbers are incremented by one.