Comments (3)
According to EDIFact (as well as the other 2 standards X12 and Tradacoms) inside of an EDI Segment such as UNB
there is this a fixed structure. For example in your case.
- tag:
UNB
- element 0:
UNOC:3
- component 0:
UNOC
- component 1:
3
- component 0:
- element: 1:
109910000
- component 0:
109910000
- component 0:
- element 2:
999999999
- component 0:
999999999
- component 0:
- element 3:
240315:1342
- component 0:
240315
- component 1:
1342
- component 0:
- element 4:
00384
- component 0:
00384
- component 0:
- element 5:
<Empty>
- component 0:
<Empty>
- component 0:
- element 6:
AO05Q224ke0
- component 0:
AO05Q224ke0
- component 0:
- element 0:
A path is composed by these 3 PathFragments separated by /
like so <SegmentName>/<ElementIndex>/<ComponentIndex>
. The component index is synonymous to the <ValueIndex>
A part (fragment) can be either:
- Explicitly declared (full path)
- a wildcard
*
in order to enable CLR class reusability. In essence this enables a definition on an[EdiElement]
class as a set of reusable component values under a different Segment context. - Missing a part. This case is either because it is implied zero (on a component/value property) or because it is marked on an Element or Segment class.
Check out an older question here #179
Although your example should be working on first glance there may be something else going on. Can you add a pull request with a failing test.
from edi.net.
Thanks. That helped me.
from edi.net.
I forgot to mention that in cases where elements repeat multiple times (with variable count) inside of a Segment there is a special notation on order to map them to a collection instead of mapping them to multiple properties of the same type like Element1, Element2, ElementN
Like in this case: https://github.com/indice-co/EDI.Net/blob/master/test/indice.Edi.Tests/Models/EdiFact_Issue190.cs
from edi.net.
Related Issues (20)
- EDIFACT Serialisation and UNT segment count HOT 2
- Partial X12 850 Document sent by affliliate
- Combine condition with value HOT 2
- How to omit unpopulated segment? HOT 2
- Question for path HOT 3
- X12 - automatic detection of grammar
- Set font when use EdiSerializer().Deserialize
- X12 - Segment ISA - Component element separator HOT 2
- X12 - Reuse data segment code (example: N1 Loop Party Identification) HOT 1
- X12 - N1 Loop PartyIdentification for EDI 940 HOT 1
- Parser cannot process escaped plus sign for phone number in PartyMutuallyDefined NAD record HOT 1
- Two segment groups with the same path HOT 1
- Repeating element groups within segment for X12 830 HOT 1
- Repeated elements in a segment
- Picture with implicit V9 on decimal? still adds a decimal separator HOT 4
- [Q] Error was thrown for repeated segment groups HOT 3
- EdiCondition not working to RFF+CR HOT 1
- .net8 HOT 1
- Some Segments does not map properly
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 edi.net.