Comments (5)
Seems it's the same issue with the other directories (d94 to d98) and maybe also others.
from smooks.
I guess that the issue is the edg parser. The element
<xsd:element dfdl:initiator="SPS" dfdl:ref="ibmEdiFmt:EDISegmentFormat" maxOccurs="10" minOccurs="0" name="SPS" type="D93A:SPS-SamplingParametersForSummaryStatiC1DTMDateTimePeriod"/>
is based on the following segment group definition. Seems like it does not like the missing space between the name and the "C".
--- Segment Group 5 ------------------------------- C 200 ------+
LIN Line item M 1 |
PIA Additional product id C 10 |
IMD Item description C 10 |
MEA Measurements C 10 |
PSD Physical sample description C 1 |
SPS Sampling parameters for summary statiC 1 |
DTM Date/time/period C 10 |
QTY Quantity C 10 |
FTX Free text C 5 |
from smooks.
I guess the issue is in this pattern (https://github.com/smooks/smooks-edi-cartridge/blob/master/ect/src/main/java/org/smooks/edi/ect/formats/unedifact/UnEdifactMessage.java#L80)
The correct one removes the whitespace in front of the M|C|m|c
(\d{4,5})[-+* XS](\w{3}) (.)(M|C|m|c) (\d+)[ |]
The correct one can be tested here -> https://regex101.com/r/Gxfvsf/1
from smooks.
Hi Adam, can you open the ticket and report your findings in the EDI cartridge repo (https://github.com/smooks/smooks-edi-cartridge/issues/new)?
from smooks.
Hi Adam, can you open the ticket and report your findings in the EDI cartridge repo (https://github.com/smooks/smooks-edi-cartridge/issues/new)?
Yep, done -> smooks/smooks-edi-cartridge#26
from smooks.
Related Issues (20)
- delete pls
- Unncessary XMLReader instance when creating an execution context
- the attr of minOccurs became "realOccurs" in the EDI mapping HOT 2
- Java 14 ASM compatibility HOT 4
- org.smooks.cdr.SmooksConfigurationException: Unable to locate Smooks digest configuration '/META-INF/xsd/smooks/edi-2.0.xsd-smooks.xml' for extended resource configuration namespace 'https://www.smooks.org/xsd/smooks/edi-2.0.xsd'. This resource must be available on the classpath. at org.smooks.cdr.XMLConfigDigester.assertExtendedConfigOK(XMLConfigDigester.java:554) HOT 8
- smooks.org HOT 2
- error in opening zip file in Initialisation HOT 4
- Where is ConfigParam? HOT 1
- EDI message processing failed - expected to contain 2 fields. Actually contains 1 fields HOT 1
- Question: Smooks seems to scan all project dependencies - how do I prevent that? HOT 4
- Memory issue with edi to java parsing | smooks version: 2.0.0-RC1 HOT 2
- Class loader used for loading ContentHandlerFactory is not the same as the one set in ApplicationContext
- CSV Reader not escaping double quotes HOT 2
- How to map json to json HOT 3
- Smooks-all for 2.0 HOT 3
- Convert JSON to JSON without a Java Bean HOT 1
- Upgrade to atleast java 9 to use Jakarta EE 9 namespace HOT 3
- springboot 2.3 conflict HOT 2
- factory.toUNEdifact() BigDecimal Value... 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 smooks.