EDI.Net icon indicating copy to clipboard operation
EDI.Net copied to clipboard

Multiple segments with same name - [EdiCondition] not working

Open brookd-lab opened this issue 3 years ago • 2 comments

MEA + 5 parameters MEA + 5 parameters

How can I make this work for Deserializing a file.

I just need the model setup.

Thanks, David

brookd-lab avatar Mar 10 '21 17:03 brookd-lab

Hi @brookd-lab and thanks for your interest in Edi.Net.

In order to help out you need to provide with a detailed example (sample transmission as well as models) with what you have tried so far. In the meantime checkout the tests project and all the samples there to get you started.

C.

cleftheris avatar Mar 16 '21 10:03 cleftheris

I think I'm running into the same issue as brookd-lab. After loading in this example X12 834 with the corresponding model in X12_834.cs, only the last segment of each type is accessible in the POCO. Just to pick an example, here's what's available from all 26 REF segments: image

Not sure if the included model just wasn't written with files like this in mind, but it seems to be pretty common in the files I've seen from our trading partner.

jamesbeegle avatar Aug 17 '23 23:08 jamesbeegle