Anonymous - 2011-11-01

Hello All,

I am implementing an EDI X12 834 parser for which I am using Python pyx12. I
have downloaded the installation package for pyx12 and was able to
successfully convert a sample EDI X12 834 file into an xml which was using ISA
version 00401 provided with pyx12. I have received some sample files from my
client which requires 00501 support. When I tried to convert them into an xml,
I got an error which is mentioned below. I guess the mapping for 00501 is not
available. Can you please guide me where can I find a mapping for 00501. Also,
please let me know if there is a work around for this.

$: x12xml -m /usr/local/share/pyx12/map/ 834_005010X220A1.X12

<x12simple>

2011-11-01 12:07:08,618 ERROR error_handler 325 Line:1 ELE:7 - (:) is not a
valid code for Interchange Control Standards Identifier (ISA11) (:)

2011-11-01 12:07:08,619 ERROR error_handler 325 Line:1 ELE:7 - (00501) is not
a valid code for Interchange Control Version Number (ISA12) (00501)

<loop id="ISA_LOOP">

<seg id="ISA">

<ele id="ISA01">00</ele>

<ele id="ISA02"> </ele>

<ele id="ISA03">00</ele>

<ele id="ISA04"> </ele>

<ele id="ISA05">ZZ</ele>

<ele id="ISA06">SENDER ID </ele>

<ele id="ISA07">ZZ</ele>

<ele id="ISA08">RECEIVER ID </ele>

<ele id="ISA09">010101</ele>

<ele id="ISA10">0101</ele>

<ele id="ISA11">:</ele>

<ele id="ISA12">00501</ele>

<ele id="ISA13">000000001</ele>

<ele id="ISA14">0</ele>

<ele id="ISA15">T</ele>

<ele id="ISA16">!</ele>

</seg>

Traceback (most recent call last):

File "/usr/local/bin/x12xml", line 174, in <module>

sys.exit(not main())

File "/usr/local/bin/x12xml", line 160, in main

fd_997=None, fd_html=None, fd_xmldoc=fd_xml, xslt_files=xslt_files)

File "/usr/local/lib/python2.6/dist-packages/pyx12/x12n_document.py", line
161, in x12n_document

(icvn, fic, vriic)

pyx12.errors.EngineError: Map not found. icvn=00501, fic=BE,
vriic=005010X220A1

</loop>

</x12simple>

Thanks for the help !!!