COHAOR — EDIFACT Container Special Handling Order Message (D.21B)
The COHAOR message is the order for a special handling or specific service to perform on one or more containers, sent by a carrier, forwarder or principal to a terminal or depot: inspection, weighing, repositioning, reefer treatment, sealing. It complements COPRAR and COREOR for everything that is neither a standard load/discharge nor a standard release. This page summarises the segment structure as published by UN/CEFACT for directory D.21B.
Purpose
The COHAOR message is the order for a special handling or specific service to perform on one or more containers, sent by a carrier, forwarder or principal to a terminal or depot: inspection, weighing, repositioning, reefer treatment, sealing. It complements COPRAR and COREOR for everything that is neither a standard load/discharge nor a standard release.
This page focuses on the structure published by UN/CEFACT for directory D.21B. The segments listed, their status (M / C), position and repetition factor are extracted from the official file cohaor_c.htm hosted on service.unece.org.
Segment structure
The COHAOR D.21B message has 48 header entries, 0 detail entries and 0 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.
Header
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
00010 | UNH | Message header | M | 1 |
00020 | BGM | Beginning of message | M | 1 |
00030 | DTM | Date/time/period | C | ×9 |
00040 | FTX | Free text | C | ×9 |
00050 | SG1 | Group (×9) | C | ×9 |
00060 | RFF | Reference | M | 1 |
00070 | DTM | Date/time/period | C | ×9 |
00080 | SG2 | Group (×9) | M | ×9 |
00090 | NAD | Name and address | M | 1 |
00100 | SG3 | Group (×9) | C | ×9 |
00110 | CTA | Contact information | M | 1 |
00120 | COM | Communication contact | C | ×9 |
00130 | SG4 | Group (×99999) | M | ×99999 |
00140 | EQD | Equipment details | M | 1 |
00150 | RFF | Reference | C | ×9 |
00160 | DTM | Date/time/period | C | ×9 |
00170 | LOC | Place/location identification | C | ×9 |
00180 | FTX | Free text | C | ×9 |
00190 | GOR | Governmental requirements | C | ×9 |
00200 | HAN | Handling instructions | C | ×99 |
00210 | ATT | Attribute | C | ×99 |
00220 | MEA | Measurements | C | ×9 |
00230 | PCD | Percentage details | C | ×9 |
00240 | SG5 | Group (×9) | C | ×9 |
00250 | TDT | Transport information | M | 1 |
00260 | DTM | Date/time/period | C | ×9 |
00270 | RFF | Reference | C | ×9 |
00280 | SG6 | Group (×9) | C | ×9 |
00290 | LOC | Place/location identification | M | 1 |
00300 | DTM | Date/time/period | C | ×9 |
00310 | SG7 | Group (×9) | C | ×9 |
00320 | NAD | Name and address | M | 1 |
00330 | SG8 | Group (×9) | C | ×9 |
00340 | CTA | Contact information | M | 1 |
00350 | COM | Communication contact | C | ×9 |
00360 | SG9 | Group (×999) | C | ×999 |
00370 | DGS | Dangerous goods | M | 1 |
00380 | ATT | Attribute | C | ×9 |
00390 | FTX | Free text | C | ×9 |
00400 | MEA | Measurements | C | ×9 |
00410 | SG10 | Group (×9) | C | ×9 |
00420 | CTA | Contact information | M | 1 |
00430 | COM | Communication contact | C | ×9 |
00440 | SG11 | Group (×9) | C | ×9 |
00450 | TMP | Temperature | M | 1 |
00460 | RNG | Range details | C | 1 |
00470 | CNT | Control total | C | 1 |
00480 | UNT | Message trailer | M | 1 |
Detail
No segment in this section.
Summary
No segment in this section.
Changes vs D.96A
Top-level differences between D.96A and D.21B for the COHAOR message (segments directly inside header / detail / summary, ignoring nested groups). The comparison is indicative: a given tag may have evolved inside nested groups without showing up in this synthesis.
Segments added vs D.96A
COMin the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.ATTin the header section (status C, repeat ×99) — not present at the top of the corresponding D.96A section.MEAin the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.PCDin the header section (status C, repeat ×9) — not present at the top of the corresponding D.96A section.DGSin the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.TMPin the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.RNGin the header section (status C, repeat ×1) — not present at the top of the corresponding D.96A section.
Status changes (M ↔ C)
CTA(header): status C in D.96A → M in D.21B.CNT(header): status M in D.96A → C in D.21B.
Max-repeat changes
CTA(header): repeat ×9 in D.96A → ×1 in D.21B.HAN(header): repeat ×9 in D.96A → ×99 in D.21B.
Structural example
Minimal example of an COHAOR D.21B message with mandatory segments only. The goal is to show the exact version declared in UNH (COHAOR:D:21B:UN) — not to replicate a full business case (see the COHAOR D.96A page for an annotated example).
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL021001'
UNH+1+COHAOR:D:21B:UN'
BGM+266+COHAOR-2026-HAN-0033+9'
DTM+137:202605141430:203'
TDT+20+MSC1234W+1++MSC::ZZZ+++9301234:103:::MSC OSCAR'
LOC+11+FRLEH::6'
NAD+CA+5410000000123::9'
EQD+CN+MSCU1234567+45G1+++5'
HAN+L:::Reefer pre-trip inspection'
UNT+9+1'
UNZ+1+CTRL021001' Common errors
- Misaligned UNH tokens — The
UNH+...+COHAOR:D:21B:UNtoken must reflect exactly the directory in use — a mismatch between the UNH release and the release agreed with the partner is rejected by every strict validator. - Wrong UNT segment count — The value after
UNT+must include UNH and UNT themselves. By far the most common sender-side error, regardless of the directory in use. - Stale code lists — Between D.96A and D.21B, several code lists received new qualifiers (DTM status, RFF qualifier, NAD codes…). Reusing an older directory’s code tables triggers warnings or even rejections depending on the partner’s strict-conformance mode.
Related messages
Other versions of this message available on ediverse.io: COHAOR D.96A, COHAOR D.10A, COHAOR D.16B, COHAOR D.24A.