Error using grammar: 837004010

305 views
Skip to first unread message

Robik Shrestha

unread,
Feb 16, 2014, 1:11:49 AM2/16/14
to bots...@googlegroups.com
I am using x12 grammar: 837004010.py that is available in BOTS sourceforge website. My route is configured as:

FromeditType: x12
Frommessagetype: 837004010 

The file I need to process has following few lines at the top:

ISA*00*          *00*          *ZZ*11-3038233     *ZZ*2473           *070502*1154*U*00401*000882431*0*P*:
GS*HC*11-3038233*2473*20070502*1154*882431*X*004010X098A1
ST*837*000188368

I get the following error message:

InMessageError: [S50]: Line:1 pos:1 record:"ISA": message has an error in its structure; this record is not allowed here. Scanned in message definition until mandatory record: "ST".

What is wrong?

henk-jan ebbers

unread,
Feb 16, 2014, 6:55:46 AM2/16/14
to bots...@googlegroups.com
hi Robik,

welcome to the bots mailing list.

frommessagetype needs to be: x12
(bots will find out what detailed messagetype it is itself.

kind regards,
henk-jan
--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Razvan Sodoleanu

unread,
Jul 13, 2015, 4:42:44 AM7/13/15
to bots...@googlegroups.com
Hi,

I have the same issue with a 204 message. I have followed your reply above, and named the grammar file X12.py, as BOTS said it would not find module X12.
Now I stil get the error. Could you please tell me any other reason for which it would be generated?
MessageError: [S50]: Line:1 pos:1 record:"ISA": message has an error in its structure; this record is not allowed here. Scanned in message definition until mandatory record: "ST".


Thanks a lot,
Razvan

henk-jan ebbers

unread,
Jul 13, 2015, 8:50:42 AM7/13/15
to bots...@googlegroups.com
sorry.
please download & isntall a plugin with x12, and examine.
those are working and valid setups.
work from there, eg by adding the 204 grammar.

kind regards,
henk-jan
>> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <mailto:botsmail+u...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages