Giter Club home page Giter Club logo

Comments (7)

josecaster avatar josecaster commented on September 16, 2024

On another note, Forgot to mention this. The error might not be with the "-2" but if you look at the last screenshot, the reader sees the value "20" of code 3055 as an element of c228. c288 as only 2 elements and the value 20 is on the 3th element of c040. I think there is the real issue as opposed to what I said earlier.

from staedi.

MikeEdgar avatar MikeEdgar commented on September 16, 2024

@josecaster - thanks for reporting. I'll let you know what I find as soon as I can.

from staedi.

MikeEdgar avatar MikeEdgar commented on September 16, 2024

@josecaster - are you using version 1.7.1? In a quick test I did not get the error using 1.7.1 or the current 1.8 development version in the master branch.

from staedi.

MikeEdgar avatar MikeEdgar commented on September 16, 2024

Hi @josecaster - were you able to get it working?

from staedi.

josecaster avatar josecaster commented on September 16, 2024

Hey,

Sorry for the late reply, I wasn't aware that you already replied. I am using version 1.7.1. I think I know why you didn't get the error. There was an error in the date of the UNH and needed to fix that before the Validator unfolds other errors. Can you please test with this new file. And if it works should I use 1.8?
edi.zip

from staedi.

MikeEdgar avatar MikeEdgar commented on September 16, 2024

@josecaster, I am still not able to reproduce it with the new file (I do get an "element too short error though" on the UNB date). The date length is 8 chars since the UNB01.2 is version 4.

I also added this to the schema for the CNT segment that is located before the UNT.

  <elementType name="6066" base="decimal" maxLength="18"/>
  <elementType name="6069" base="string" maxLength="3"/>

  <compositeType name="C270">
    <sequence>
      <element type="6069" minOccurs="1"/>
      <element type="6066" minOccurs="1"/>
      <element type="6411" />
    </sequence>
  </compositeType>

  <segmentType name="CNT">
    <sequence>
      <composite type="C270" minOccurs="1"/>
    </sequence>
  </segmentType>

If there is any way you can send more of your application code or a small example program that reproduces the issue, I can dig deeper.

Version 1.8 is not yet released. There are a few more features I'd like to incorporate and there is a new version of the schema format (xmlns v4).

from staedi.

josecaster avatar josecaster commented on September 16, 2024

Found the issue on my side. Thanks for the support. Very quick feedback, it was no issue at all.

FYI I forgot that I wasn't validating the same file but I was validating a file which I rewrote and since there was an issue with the rewritten addition I experienced the issues. Thanks again for the support.

from staedi.

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.