Giter VIP home page Giter VIP logo

Comments (1)

eddyizm avatar eddyizm commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.