EDI Loops

61 views
Skip to first unread message

Jeff Bradley

unread,
May 6, 2021, 1:30:40 PM5/6/21
to Smooks Users
n working with the EDI file below I am attempting to map the name loop (N1, N3, N4) using the user guide and some of the threads I have found in this forum. 

ISA*00*          *00*          *02*ODFL           *ZZ*FOOBAR        *170202*1244*U*00401*000001062*0*P*>~
GS*QM*ODFL*FOOBAR*20170202*124452*906*X*004010~
ST*214*0001~
B10*02625962200*NAMCLF0005633*ODFL~
L11*4550465693*PO~
N1*SH*Some shipper~
N3*9801 TWIN LAKES PKWY~
N4*CHARLOTTE*NC*28269~
N1*CN*Some consignee~
N3*% AERO REPAIR CORP*14 TINKER AVE STE 2~
N4*LONDONDERRY*NH*03053~
LX*1~
AT7*D1*NS***20170202*1217*ET~
AT8*G*L*8142*15~
SE*13*0001~
GE*8*9185~
IEA*1*000015198~

However, I have not been able to make it work using the examples. The error message indicates that it cannot find the LX segment, although it seems that the error messages do not always indicate the segment with the issue ini the dfdl. Here is the error message:

org.smooks.api.SmooksException: Failed to filter source
Caused by: org.smooks.api.SmooksException: Parse Error: Initiator 'LX' not found
Schema context: transaction-set-line-number Location line 107 column 18 in file:/Users/jeffbradley/src/novapath/isd/target/classes/mappings/shipment-status-message.dfdl.xsd


The dfdl file is attached. If anyone can help I would appreciate it.
shipment-status-message.dfdl.xsd

Jeff Bradley

unread,
May 6, 2021, 1:43:37 PM5/6/21
to Smooks Users
Got it. Needed an outer sequence. 
Reply all
Reply to author
Forward
0 new messages