EDI x12 Parser and Unparser

127 views
Skip to first unread message

Romina Romero

unread,
Mar 28, 2023, 12:29:23 PM3/28/23
to Smooks Users
Hi Claude! I'm working with smooks in order to create EDI x12 files. 
Configuration:

Java 11
smooks version: 2.0.0.-M3

I just started 2 days ago to work with this framework but not sure why I'm getting this error:

Data location was preceding byte 0
at org.smooks.cartridges.dfdl.parser.DfdlParser.parse(DfdlParser.java:301)
at org.smooks.engine.delivery.sax.ng.SaxNgParser.parse(SaxNgParser.java:86)
at org.smooks.engine.delivery.sax.ng.SaxNgFilter.doFilter(SaxNgFilter.java:106)
... 72 more
Caused by: Parse Error: Initiator 'ISA' not found

I'm attaching my configuration and this was based in this example
edi-mapping.xsd
850-test.xml

Romina Romero

unread,
Mar 28, 2023, 3:47:23 PM3/28/23
to Smooks Users
I found the error, I put the edi parser and unparser in the same file, and cannot handle it, must be splitted it
Reply all
Reply to author
Forward
0 new messages