Comments (1)
So I ended up working around this. The validation was failing because the 2200C loop is conditional and not mandatory. I need to go into the code to find how to update that.
I ended up figuring this out when going to the x12XML and convert to xml. Verified the output was correct by using the -v
flag and ran into another issue.
x12xml -v "env/193592.20200803220823730_Sample.CLI.277.edi"
log:
2020-08-19 14:46:39,741 ERROR Line:16 SEG:3 - Mandatory loop "Provider of Service Information Trace Identifier" (2200C) missing 2020-08-19 14:46:39,747 ERROR Input file had errors.
when removing the verbose flag, it throws an error:
x12xml "env/193592.20200803220823730_Sample.CLI.277.edi" -o output.xml Traceback (most recent call last): File "/home/eddyizm/Documents/py_edi_import/env/bin/x12xml", line 8, in <module> sys.exit(main()) File "/home/eddyizm/Documents/py_edi_import/env/lib/python3.8/site-packages/pyx12/scripts/x12xml.py", line 85, in main if args.verbose > 0: TypeError: '>' not supported between instances of 'NoneType' and 'int'
So I updated the x12xml.py file (line 85):
if args.verbose > 0: logger.setLevel(logging.DEBUG)
to
if args.verbose: if args.verbose > 0: logger.setLevel(logging.DEBUG)
Just trying to move forward, probably doesn't fix the root cause as mentioned above but it does let me convert the file and then move on to the next step of ingesting the file.
from pyx12.
Related Issues (20)
- JSON error and parsing output HOT 2
- Convert from setuptools resource loading to pkgtools HOT 2
- x12xml_idtag.py location or is it deprecated?
- x12xml crashing in dataele.py
- Help - Parse EDI file into XML HOT 2
- XML map for 837D claim HOT 2
- pyx12 usage issue HOT 1
- Tabs not being treated as invalid
- Add map file for 5010 279A1
- 834 5010 LX sequence # collisions? HOT 4
- Error when parsing a 271 file HOT 1
- Help - Parse data in multiple files (not really an issue, a question) HOT 1
- 835 - missing Adjustment Reason Code HOT 5
- Feature Request: Remove validation of external defined code sets HOT 4
- ERROR Failed to create 999 response- X12 file validation HOT 4
- can it convert to a tabular data format excel or tab delimited file ? HOT 1
- x12valid throwing TypeError: 'NoneType' object is not iterable
- Is this project alive or dead? HOT 1
- Can we please update the pyx12/map/codes.xml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyx12.