Very vague details on the cause of exceptions in Smooks 2.x

6 views
Skip to first unread message

Zug Zug RoktarOgar

unread,
Jul 23, 2025, 10:32:25 AMJul 23
to Smooks Users
Hello, I'm using Smooks 2.x to parse EDI 837 files. 

When there is an error while parsing a, let's say, 6 levels deep element, I get a stacktrace that says something to the effect of "initiator [*insert initiator for 2nd level element ] not found". 
I am having a VERY hard time figuring out where the issue is coming from and why.

I am able to parse a whole 837 document. But not all documents are successfully parsed.

The same input 837 files are parsed 100% when using Smooks 1.7

What am I doing wrong?

Zug Zug RoktarOgar

unread,
Jul 23, 2025, 10:47:26 AMJul 23
to Smooks Users
THe 837 file structure in sort of xml tree to help demonstrate the issue i'm seeing (especially for folks not super familiar with EID 837)

<Segment>
<ISA>
<X12_FunctionalGroup>
<GS>
<X12_TransactionSet>
<ST>
<Loop_2000A>
<Loop_2000B>
<Loop_2300>
<CLM>
<Loop_2310C>
<NM1_ServiceFacilityLocationName_2310C>
<N3_ServiceFacilityLocationAddress_2310C> <!-- these two are where the issue is afaik -->
<N4_ServiceFacilityLocationCityStateZIPCode_2310C> <!-- these two are where the issue is afaik -->
<SE> <!-- I'm getting "initiator 'SE' not found" -->
<GE>
<IEA>
<!-- end of whole file -->

I'm under the impression that Smooks 2.x is basically telling me "Oh hey something went wrong at any point before 'SE'. Dunno where. Good luck finding it!"

I've tried turning debugging on but oh boi that was a lot of text to find useful information.
Reply all
Reply to author
Forward
0 new messages