
Canadian National Railway (CN Rail) 417 Rail Carrier Waybill Interchange (8030)
Canadian National Railway (CN Rail) · X12 008030
Canadian National Railway (CN Rail)’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
20 of 20 segments
HEADING
ST
Transaction Set Header ST
pos 0100
Optional
max —
ZC1
Beginning Segment For Data Correction Or Change ZC1
Example: ZC1*1257*CN*123456*111111*20230710*CO*CN*R
pos 0200
Optional
max —
BX
General Shipment Information BX
Example: BX*00*R*PP*1257*CN*L*B*N****N
pos 0300
Optional
max —
BNX
Rail Shipment Information BNX
Example: BNX*R**S
pos 0400
Optional
max —
N9
Extended Reference Information N9
At least one N9 containing a Bill of Lading number must be included. This number will be included on all other documents such as Freight Invoice and Remittance/Payment.
Example: N9*BM*1257**20230710*1336*ET
pos 0500
Optional
max 30
DTM
Date Time Reference DTM
Example: DTM*168*20230710*1336*ET
pos 0700
Optional
max 5
N7 Looprequired
N7
Equipment Details N7
Example: N7*CN*123456*213360*N*66700******RR****6711*M****186*128***C214
pos 0800
Required
max —
M7
Seal Numbers M7
Example: M7*12345
pos 1400
Optional
max 5
N8
Waybill Reference N8
Example: N8*111111*20230710
pos 1800
Required
max 499
F9
Origin Station F9
Indicates the origin of the shipment, the point from which it is shipped. The spelling should be in accordance with that listed in the Standard Point Location Code (SPLC) standard available from the National Motor Freight Tariff Association (USA) or the National Transportation Agency (Canada). CN can provide spellings for your stations.
Example: F9*070112*WATSON*SK*****071511*S0K4V0
pos 2000
Required
max —
D9
Destination Station D9
Indicates the destination of the shipment, the point at which it will be unloaded or where the transportation responsibility reverts to the consignee. The spelling should be in accordance with that listed in the Standard Point Location Code (SPLC) standard available from the National Motor Freight Tariff Association (USA) or the National Transportation Agency (Canada). CN can provide spellings for your stations.
Example: D9*093390*VANCOUVER*BC*****0093900*V5T1E1
pos 2100
Required
max —
N1 Looprequired
N1
Party Identification N1
Associated to the N3 and N4 segments below. N1, N3 and N4 segments are required for the Consignee and any other Additional Parties to the shipment.
Examples:
N1*SH*GENERIC CARLOAD INC*C5*1111111111111
N3*123 FIRST ROAD
N4*WATSON*SK*S0K 4V0*CA
N1*CN*GENERIC CONSIGNEE CO*C5*2222222222222
N3*12 SMITH STREET
N4*VANCOUVER*BC*V5K 1P7*CA
N1*PF*GENERIC CARLOAD INC*C5*1111111111111
N3*123 FIRST ROAD
N4*WATSON*SK*S0K 4V0*CA
pos 2200
Required
max —
N3
Party Location N3
pos 2300
Optional
max 2
N4
Geographic Location N4
pos 2400
Optional
max —
PER
Administrative Communications Contact PER
Example: PER*IC*CONTACT NAME*TE*123-123-1234
pos 2500
Optional
max 2
R2
Route Information R2
One R2 segment for each railroad in the route. CN can provide route information for your shipments. (i.e.: Railroad SCAC's and junctions)
Example: R2*CN*S****R
pos 4700
Required
max 13
LX Looprequired
LX
Transaction Set Line Number LX
Example: LX*1
pos 5400
Required
max —
L5
Description Marks And Numbers L5
CN can provide Standard Transportation Commodity Codes (STCC) for your commodities. The commodity code is required only on the first L5 segment. Additional L5 segments can be used to provide additional description of lading.
Example: L5*1*WALLBOARD*3275440*T
pos 5500
Required
max 15
L0 Loop
L0
Line Item Quantity And Weight L0
Example: L0*1***213360*N***1*CLD
pos 5700
Required
max —
SE
Transaction Set Trailer SE
pos 8100
Optional
max —
Validate your 417
Paste or upload a document and check it against Canadian National Railway (CN Rail)’s published rules — segment order and repetition, required elements, field lengths, data types and accepted codes. Nothing is stored.
Go live on Canadian National Railway (CN Rail)’s 417 in days, not months
Connect this guide to your accounting system and test with Canadian National Railway (CN Rail) yourself, or leave the mapping and the test cycle to us, at no extra charge.