Comments (9)
I've tried version 1.9.5-SNAPSHOT from master and it works as expected! Thank you so much @MikeEdgar
from staedi.
Hi @benisantos - is there any way your clients can disable the repetition separator in the UNA
? by sending a space? The trouble is that the documentation says it is not used, but then tells you to send a value in UNA
:-)
from staedi.
No, I'm afraid not. There are several clients acting like that, and there is a legacy app supporting those things... :(
from staedi.
@benisantos - I can add the ability to force the value of a delimiter, i.e. setting the repetition character to a blank space in this case would work. Until that is ready, do you have any way to change that position of the UNA
to a blank space prior to parsing it?
from staedi.
Perfect @MikeEdgar ! In the meantime, we will preprocess the file to "hack" the UNA segment :)
Thank you so much.
from staedi.
@benisantos - my plan for implementing this change is to only allow the repetition separator to be used if the EDIFACT version is 4 or later (UNB element 1, component 2). This means if you write a UNA
segment directly or by overriding the delimiters when writing with the EDIStreamWriter
, it will result in a blank written in the UNA
for the repetition character. This is the documented use for the UNA
prior to EDIFACT version 4. Given that the repetition character is supposed to be ignored for PADIS, this should not be an issue.
Please let me know if you see any issues with that approach.
from staedi.
@benisantos - I also now noticed that although the documentation states the repeater is not used and does not need to be escaped, the first example shown in the document shows the repeater being escaped...
The existing unit test that used that example was updated for this change: https://github.com/xlate/staedi/pull/81/files#diff-4699360291fcb4eb52a263e42c556afc
from staedi.
@benisantos - version 1.10.0
has been released with this change included.
from staedi.
Thank you again @MikeEdgar
from staedi.
Related Issues (20)
- Automatically use included control schemas in writer
- Implementation schemas not correctly validating when writing EDI
- write X12 file HOT 3
- Add support for obtaining enumeration title values from schema for the element_data HOT 1
- Resolve GitHub action warnings HOT 1
- Control reference and count validation inactive for X12 HOT 3
- Read X12 File Error HOT 6
- 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
- Option to ignore repetition separator in the ST/SE segments HOT 8
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.