Comments (4)
Thanks for the report @nsharma-bh. I'm looking into it and I think this will help solve a few issues that I've found. One issue that I see is that the order of the segments in your <implementation>
loop 2300 is different from the order in the standard <transaction>
. That is the cause of some of the IMPLEMENTATION_UNUSED_SEGMENT_PRESENT
errors. The schema parser should detect the different order when reading the <implementation>
and throw an error then (with details) rather than when reading the EDI data.
from staedi.
@MikeEdgar So I changed my XML to this and I actually got 2310A and 2310B. I changed 2300 to the file attached
837_loop1000_only.txt
But now I'm getting this error
Exception in thread "main" java.lang.ClassCastException: io.xlate.edi.internal.schema.StructureType cannot be cast to io.xlate.edi.schema.EDISimpleType at io.xlate.edi.internal.stream.validation.UsageNode.getSimpleType(UsageNode.java:145) at io.xlate.edi.internal.stream.validation.UsageNode.validate(UsageNode.java:149) at io.xlate.edi.internal.stream.validation.Validator.validateElementValue(Validator.java:1152) at io.xlate.edi.internal.stream.validation.Validator.validateVersionConstraints(Validator.java:1124) at io.xlate.edi.internal.stream.tokenization.ProxyEventHandler.segmentEnd(ProxyEventHandler.java:299) at io.xlate.edi.internal.stream.tokenization.Lexer.lambda$new$3(Lexer.java:112) at io.xlate.edi.internal.stream.tokenization.Lexer.nextEvent(Lexer.java:503) at io.xlate.edi.internal.stream.tokenization.Lexer.parse(Lexer.java:273) at io.xlate.edi.internal.stream.StaEDIStreamReader.nextEvent(StaEDIStreamReader.java:171) at io.xlate.edi.internal.stream.StaEDIStreamReader.next(StaEDIStreamReader.java:203) at org.example.EDIParser$.delayedEndpoint$org$example$EDIParser$1(EDIParser.scala:23) at org.example.EDIParser$delayedInit$body.apply(EDIParser.scala:9) at scala.Function0.apply$mcV$sp(Function0.scala:34) at scala.Function0.apply$mcV$sp$(Function0.scala:34) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.App.$anonfun$main$1$adapted(App.scala:76) at scala.collection.immutable.List.foreach(List.scala:389) at scala.App.main(App.scala:76) at scala.App.main$(App.scala:74) at org.example.EDIParser$.main(EDIParser.scala:9) at org.example.EDIParser.main(EDIParser.scala)
Am I still doing something wrong ? I was not expecting this error to occur again
from staedi.
I was able to reproduce that error also and I'll provide a fix. You can work around it by adding the other 2310 loop types.
from staedi.
Okay so you mean 2310C and 2310D and 2320 which are other subscriber loops also ??
EDIT:
I added the 2310C Loop and the code is not breaking anymore. Thanks for the help
from staedi.
Related Issues (20)
- Repetition Elements are not being correctly identified HOT 3
- Error reported when reading ANSI encoded txt file HOT 27
- Missing Mandatory Segments HOT 8
- Does enumerated elements really requires minLength and maxLength? HOT 12
- Reporting a vulnerability HOT 2
- How to apply relational condition in schema HOT 11
- X12 unexpected segment error occurred when first segment of loop is missing HOT 5
- Support multiple ISA segments in an X12 EDI file
- Validator should be reset at end of interchange
- titles for segments like BGN, ST, INS are not accessible in 834 EDI HOT 1
- Adding condition to writeSegment HOT 4
- Option to ignore repetition separator in the ST/SE segments HOT 8
- default decimal mark is point (.) when UNA segment is not present HOT 2
- HL Segment is not interpreted correctly by ReaderService HOT 17
- How to define element inside element in schema? HOT 7
- How to process large EDI files in reader service HOT 5
- staedi api : EDIStreamReader fail to parse if segment element has accent marks . HOT 12
- Edi 835 Never Emitting a START_TRANSACTION HOT 3
- dots in an element in the ISA results in ELEMENT_OCCURRENCE_ERROR HOT 2
- Improper parse of simple 837 HOT 5
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 staedi.