
Canadian Pacific 417 Rail Carrier Waybill Interchange
Canadian Pacific · X12 004040
Canadian Pacific’s published 417 specification, rendered as an interactive guide. Expand any segment to see its elements, data types, lengths and accepted codes — then validate your own document against it below.
Specification
50 of 50 segments
HEADING
ST
Transaction Set Header ST
pos 0100
Optional
max —
ZC1
Beginning Segment For Data Correction Or Change ZC1
pos 0200
Optional
max —
BX
General Shipment Information BX
pos 0300
Required
max —
BNX
Rail Shipment Information BNX
pos 0400
Required
max —
N9
Reference Identification N9
pos 0500
Optional
max 30
CM
Cargo Manifest CM
pos 0600
Optional
max 2
DTM
Date Time Reference DTM
pos 0700
Optional
max 5
N7 Looprequired
N7
Equipment Details N7
pos 0800
Required
max —
VC Loop
VC
Motor Vehicle Control VC
pos 0900
Required
max —
N1 Loop
N1
Name N1
pos 0920
Required
max —
N3
Address Information N3
pos 0940
Optional
max 2
N4
Geographic Location N4
pos 0960
Optional
max —
H3
Special Handling Instructions H3
pos 0980
Optional
max —
M12
In Bond Identifying Information M12
pos 1200
Optional
max 2
M7
Seal Numbers M7
pos 1400
Optional
max 5
GA
Canadian Grain Information GA
pos 1650
Optional
max 15
N8
Waybill Reference N8
pos 1800
Required
max 499
F9
Origin Station F9
pos 2000
Required
max —
D9
Destination Station D9
pos 2100
Required
max —
N1 Looprequired
N1
Name N1
pos 2200
Required
max —
N3
Address Information N3
pos 2300
Optional
max 2
N4
Geographic Location N4
pos 2400
Optional
max —
BL
Billing Information BL
pos 2620
Optional
max 12
R2
Route Information R2
pos 4700
Required
max 13
H3
Special Handling Instructions H3
pos 5200
Optional
max 20
PS
Protective Service Instructions PS
pos 5300
Optional
max 5
LX Looprequired
LX
Assigned Number LX
pos 5400
Required
max —
L5
Description Marks And Numbers L5
pos 5500
Required
max 15
L0 Looprequired
L0
Line Item Quantity And Weight L0
pos 5700
Required
max —
PI
Price Authority Identification PI
pos 5900
Optional
max 30
X1
Export License X1
pos 5950
Optional
max 6
LH1 Loop
LH1
Hazardous Identification Information LH1
pos 6700
Required
max —
LH2
Hazardous Classification Information LH2
pos 6800
Optional
max 4
LH3
Hazardous Material Shipping Name LH3
pos 6900
Optional
max 10
LFH
Freeform Hazardous Material Information LFH
pos 7000
Optional
max 20
LEP
Epa Required Data LEP
pos 7100
Optional
max 3
LH4
Canadian Dangerous Requirements LH4
pos 7200
Optional
max —
LHT
Transborder Hazardous Requirements LHT
pos 7300
Optional
max 3
LHR
Hazardous Material Identifying Reference Numbers LHR
pos 7400
Optional
max 5
PER
Administrative Communications Contact PER
pos 7450
Optional
max 5
N1 Loop
N1
Name N1
pos 7460
Required
max —
N3
Address Information N3
pos 7470
Optional
max 2
N4
Geographic Location N4
pos 7480
Optional
max —
PER
Administrative Communications Contact PER
pos 7490
Optional
max 2
PER
Administrative Communications Contact PER
pos 7600
Optional
max 5
LH2
Hazardous Classification Information LH2
pos 7700
Optional
max 6
LHR
Hazardous Material Identifying Reference Numbers LHR
pos 7800
Optional
max —
XH
Pro Forma B13 Information XH
pos 7850
Optional
max —
X7
Customs Information X7
pos 7900
Optional
max 10
SE
Transaction Set Trailer SE
pos 8100
Optional
max —
Validate your 417
Paste or upload a document and check it against Canadian Pacific’s published rules — segment order and repetition, required elements, field lengths, data types and accepted codes. Nothing is stored.
Go live on Canadian Pacific’s 417 in days, not months
Connect this guide to your accounting system and test with Canadian Pacific yourself, or leave the mapping and the test cycle to us, at no extra charge.