This project has moved and is read-only. For the latest updates, please go here.

Error parsing 850 file

Apr 26, 2012 at 5:28 PM

I get the following error trying to parse 850 file

Segment 'MSG*test shipping instructions' in position 10 within transaction '0083' cannot be identified within the supplied specification for transaction set 850.
Parameter name: 850

Below is content of file


ISA*00*          *00*          *ZZ*SITESTUFFP2P   *ZZ*SUPPLIERID     *090101*1215*U*00401*000000091*0*P*>~GS*PO*SITESTUFFP2P*SUPPLIERID*20090101*1215*83*X*004010~ST*850*0083~BEG*00*SA*6190**20090101~REF*CR*532~N1*LW*Demo Customer*ZZ*10000000~N1*ST*Demo Buying Property*ZZ*10052~N3*street 1*suite 1~N4*Austin*TX*78759~PER*AN*John Doe*TE*888.888.8888*EM**ZZ~MSG*test shipping instructions~PO1*6917*1*PK*10.98**VP*123456~PID*F****DESCRIPTION 1~REF*ADD*Unit #111~PO1*6915*1*EA*219**VP*654321~PID*F****DESCRIPTION 2~REF*ADD*Unit #112~CTT*2~AMT*TT*229.98*D~SE*19*0083~GE*1*83~IEA*1*000000091~


Please help

Apr 26, 2012 at 6:05 PM

Do you have a link to the specification you are following?

My reference shows that MSG should be a child of N9 segment, but you have your's following an SPI segment which I also do not have in my reference.

I can add it to the Ansi-850-4010Specification.xml file once I see what the structure is expected to be.

Apr 26, 2012 at 6:14 PM

I've updated the source to conform to and added your sample edi as a unit test.  Get the latest code at changeset 16191 for the fix.

Apr 26, 2012 at 6:22 PM

Wow!..Thank you for the quick response.  I will download and test right away.

Apr 26, 2012 at 6:36 PM

I just tested with changeset 16191 and parsing of my 850 file worked perfectly.  Thank you.