Thanks for the test file Mousami, this helps a lot!
So my install does not look that good...I'm running Python 2.3 on =
Win2000 with the libxml2 library from http://xmlsoft.org/, and get the =
following error when trying to run the below test file. I also ran one =
of my own corrected files and got the same error.
=3D=3Derror=3D=3D
C:\pyx12-1.0.1b3\build\scripts-2.3>x12xml.py knowntest.dat
Traceback (most recent call last):
File "C:\pyx12-1.0.1b3\build\scripts-2.3\x12xml.py", line 133, in ?
sys.exit(not main())
File "C:\pyx12-1.0.1b3\build\scripts-2.3\x12xml.py", line 119, in main
result =3D pyx12.x12n_document.x12n_document(param, fd_src, None, =
None, fd_xml
)
File "C:\Python23\Lib\site-packages\pyx12\x12n_document.py", line 88, =
in x12n_
document
control_map =3D map_if.map_if(os.path.join(map_path, =
'x12.control.00401.xml'),
param)
File "C:\Python23\Lib\site-packages\pyx12\map_if.py", line 190, in =
__init__
param.get_param('exclude_external_codes'))
File "C:\Python23\Lib\site-packages\pyx12\codes.py", line 108, in =
__init__
raise errors.EngineError, 'Code file not found: %s' % (code_file)
pyx12.errors.EngineError: Code file not found: =
/usr/local/share/pyx12/map/codes.
xml
=3D=3Dend error=3D=3D
-D
-----Original Message-----
From: Mousami Mishra [mailto:mo...@ya...]
Sent: Tuesday, April 13, 2004 10:48 PM
Subject: RE: [Pyx12-developer] 835 file - convert using pyx12?
ISA*00* *00* *ZZ*D00111 =20
*ZZ*0055 =20
*030603*1337*U*00401*000000121*0*T*:~GS*HP*D00111*0055*20030603*1337*1210=
001*X*004010X091A1~ST*835*0001~BPR*I*144.68*C*CHK************20030604~TRN=
*1*123456789*1386000134~REF*EV*0055~DTM*405*20030604~N1*PR*Department
of Community Health~N3*P.O. Box
30479~N4*Lansing*MI*48909~PER*CX**EM*pro...@mi...*TE*8002=
922550~N1*PE*STEIN
FRANK N
MD*FI*111223333~LX*1~TS3*109876543*11*20031231*4*453.33~CLP*111111*1*240*=
35.89**MC*0123456789~NM1*QC*1*SMITH*JANE****MR*44444444~NM1*82*1*STEIN*FR=
ANK*N**MD*MC*109876543~DTM*232*20030315~DTM*233*20030315~SVC*HC:99431*150=
*35.89**1~DTM*150*20030315~DTM*151*20030315~CAS*CO*A2*114.11~REF*6R*12312=
3001~LQ*HE*N14~SVC*HC:99238*90*0**1~DTM*472*20030315~CAS*CO*B18*90~REF*6R=
*123123002~LQ*HE*MA66~CLP*111111*1*60*31.18**MC*1234567890~NM1*QC*1*SMITH=
*JANE****MR*44444444~NM1*82*1*STEIN*FRANK*N**MD*MC*109876543~DTM*232*2003=
0318~DTM*233*20030318~SVC*HC:99213*60*31.18**1~DTM*150*20030318~DTM*151*2=
0030318~CAS*CO*A2*28.82~REF*6R*123124001~LQ*HE*N14~CLP*111111*1*93.33*46.=
43**MC*2345678901~NM1*QC*1*SMITH*JANE****MR*44444444~NM1*82*1*STEIN*FRANK=
*N**MD*MC*109876543~DTM*232*20030401~DTM*233*20030401~SVC*HC:99391*93.33*=
46.43**1~DTM*150*20030401~DTM*151*20030401~CAS*CO*42*46.90~REF*6R*1231250=
01~LQ*HE*N14~CLP*111111*1*60*31.18**MC*3456789012~NM1*QC*1*SMITH*JANE****=
MR*44444444~NM1*82*1*STEIN*FRANK*N**MD*MC*1098765
43~DTM*232*20030415~DTM*233*20030415~SVC*HC:99213*60*31.18**1~DTM*150*200=
30415~DTM*151*20030415~CAS*CO*A2*28.82~REF*6R*123126001~LQ*HE*N14~SE*62*0=
001~GE*1*1210001~IEA*1*000000121~
--- Darren Hartford <dha...@gh...> wrote:
> I've tried some other changes to the file, but no
> luck so far.
>=20
> Maybe it would help if someone could share some
> known good sample X12 files to test my install?
>=20
> Thanks,
> -D
|