Comments (8)
Hi @saravanan-periyasamy03 , do you mean that the composite separator is used in the data and it should not be interpreted as such? Since the ISA
version is 00400
, the repetition feature of X12 isn't actually enabled for the interchange.
For the PRF
segment, the intent is that MILLWORK:LIT08-04-23
is the entire PRF01
element?
from staedi.
Hi @MikeEdgar ,
Yes. MILLWORK:LIT08-04-23
is the entire data of PFR01 and we don't want EDIStreamReader to interpret it and throw exception.
Since the ISA version is 00400, the repetition feature of X12 isn't actually enabled for the interchange.
Are you saying for ISA version 00400 , the repetition will not take any effect?
from staedi.
@saravanan-periyasamy03 , yes repetition will not take effect, but the composite element will be used, which is what you're seeing with :
. Even then, it shouldn't throw an exception, but rather emit an error event (that you can ignore in this case).
Can you share a small file that reproduces the exception?
from staedi.
Hi @MikeEdgar ,
Here is the sample EDI,
ISA*00* *00* *02*ABCB *01*123456789 *230816*1432*U*00400*111283228*0*P*:~ GS*MM*ABCB*123456789*20230816*1432*283230*X*004010~ ST*866*111300152~ LX*1~ AT8*G*L*830*16~ PRF*230222069~ PRF*WORK:MIT08-04-23~ SE*6*111300152~ GE*1*283230~ IEA*1*111283228~
Note: We are not having the composite element defined in the schema.
from staedi.
@saravanan-periyasamy03 , I'm not able to reproduce the exception with the test case below. Besides the schema, is there anything else I could be missing? Does this test case produce the exception for you?
@Test
void testIssue383() throws IOException {
EDIInputFactory factory = EDIInputFactory.newFactory();
InputStream source = new ByteArrayInputStream((""
+ "ISA*00* *00* *02*ABCB *01*123456789 *230816*1432*U*00400*111283228*0*P*:~ "
+ "GS*MM*ABCB*123456789*20230816*1432*283230*X*004010~ "
+ "ST*866*111300152~ "
+ "LX*1~ "
+ "AT8*G*L*830*16~ "
+ "PRF*230222069~ "
+ "PRF*WORK:MIT08-04-23~ "
+ "SE*6*111300152~ "
+ "GE*1*283230~ "
+ "IEA*1*111283228~").getBytes());
EDIStreamReader reader = factory.createEDIStreamReader(source);
try {
while (reader.hasNext()) {
switch (reader.next()) {
case SEGMENT_ERROR:
case ELEMENT_OCCURRENCE_ERROR:
case ELEMENT_DATA_ERROR:
fail("Unexpected error: " + reader.getErrorType());
default:
break;
}
}
} catch (Exception e) {
fail(e);
} finally {
reader.close();
}
}
from staedi.
Hi @saravanan-periyasamy03 , please see my earlier comment. I was not able to reproduce the exception and will need some additional information or a test case that demonstrates the problem in order to identify a fix.
from staedi.
@saravanan-periyasamy03 , is this still an issue for you?
from staedi.
Closing for now due to inactivity. Please comment/reopen if this is still a problem.
from staedi.
Related Issues (20)
- Support to Split mulitple GS into separate EDI files HOT 9
- 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
- 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
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.