This project has moved. For the latest updates, please go here.

REgarding parsing of the EDI file

Apr 9, 2014 at 5:10 PM
Hi Team,

Can any one help me in parsing below file 810 EDI file?

ISA00 00 ZZ1913464 ZZTest 1401100349U0035010021539860P>
GSIN1913464Test201401100349490087X004110
ST
8109870001
BIG201401108774655
10008064DR
N1
BY
PHARMACY 2546 S/T
91004564139
N33 PARKWAY
N4
SON
TN38215
N1
SE
HEALTH911913464
ITD0130
0201403071500
IT1
57648001EA123.18UI00025123303N400002512330VC4590121
PID
FEFFIENT 10MG 30
IT1
5764801
1
EA
0.99
*UI00560172705N400056017270VC1280783
PID
FCOUMADIN 5MG 100
IT1
5764802
1
CT
56.02UI00882219058N400088221905VC4341327
PID
FINS LANTUS SOLOSTAR 100U/ML5
TDS
110618
CTT
3
SE
16
9870001
GE
1
490087

IEA1002153986

But while processing, I am getting below exception?

Can't find defnition for EdiFabric.Definitions.X12_004110_810.M_810

Help on this is much appreciated.

Regards,
Srini.
Apr 11, 2014 at 1:55 PM
Hi sparupalli ,
                   Good luck :) .. I am also working on 837P with EDI fabric and having challenges . 
Regarding your issue . you need to add M810 class file into definitions project and compile it . you can download all classes files and schemas from link shared. Do not change the class name or any property name as the api logic is tightly couple with naming conventions.

Currently I am facing the challenge with how to deserialize the object i.e. loading edi file into object (in your case it will be M_810 ) . The api does not load list types . May be this one will be the next challenge for you as I can see multiple IT1 segments in your file too . Let me know if its working fine at your end.
Apr 14, 2014 at 2:53 AM
Hey Rajput..thanks for the reply. I added the 810 file and related stuff in the definitions. Currently facing with the loading of the file. Need to see what would be the challenge...
Apr 14, 2014 at 10:27 AM
Hi Sparupalli

First check the GSIN1913464Test201401100349490087X004110 line . and then X004110 value . Basically api look for this value in GS segment to resolve type of class and then object type. X004110 does not belongs to X12 message types (correct me if I m wrong) and offcourse class type provided by api definitions . So I recommend you to look edi file above for correct message type .

Api contains OneDrive-2014-03-20\Classes\X12\00401 as folder for 4010 and namespace is EdiFabric.Definitions.X12_004010_810 for class M_810

So your edi file GS segment should contain value something 004010....

Hope it helps