The CNT segment provides a control total for the message, typically the number of line items. CNT+2:7 means there are 7 line items in the message. The receiver should validate that the count matches the actual number of LIN segments. Placed in the summary section after UNS+S.
CNTHover any part of the segment to see what it is. Open What your system receives to see the JSON or XML CleanEDI delivers.
CNT+2:7'Number of line items: 7.
| 1.1 | Control: Qualifier | 2Number of line items |
| 1.2 | Control: Value | 7 |
A control total. CleanEDI checks it against the actual lines and rejects the message if they disagree. It is not passed on.
Elements are separated by + and their parts by :. Positions match the explainer, so 2.3 is the third part of the second element.
| Position | Element | Parts |
|---|---|---|
| 1 | Control | 1.1 Qualifier, 1.2 Value |
| Code | Meaning |
|---|---|
1 | Total of all quantities |
2 | Number of line items |
Common EANCOM and UN/EDIFACT values. Your trading partner's implementation guide is the final word on which codes they send.
Have a real message with CNT in it? The explainer breaks down every segment and runs in your browser.
Explain my message