Framework EDI Reference. Errors
Error 6010

Maximum use for segment '<segment ID>' exceeded in transaction set/message '<ID>'. Segment position = <position>. Segment value = <value>.

Description

A data segment has exceeded the number of times it is allowed to occur at the same position as defined in the implementation guideline.  The Maximum Use attribute of the segment reference of the transaction set/message specifies how many times the data segment can occur in the same position.  If this is exceeded the error will be generated.

For example, consider the following ASC/X12 implementation guideline (simplified):

TAG   Name                                      Req.  Max. Use
ST  - Transaction Set Header ------------------- M     1 --------+
BEG - Beginning Segment For Purchase Order       M     1         |
PER - Administrative Communications Contact      O     3         |
FOB - F.O.B Related Instructions                 O    >1         |
-----------------------------------------------------------------+


The BEG segment has a maximum use of 1, but in the following document it occurs twice, which will generate the error.


ST*850*24001
BEG*00*BY*000000114**960814
BEG*00*ST*000000115**960815   <<<< ------- Second occurrence of BEG is illegal
PER*OC**FX*8009909999
FOB*PP