Skip to content

Parsing 999 fails when TA1 exists #77

@Edwardiv1

Description

@Edwardiv1

Parsing the following fails with the errors messages:
Error: ANSI version 000 not consistent with version specified ANSI837_5010_X231

999 Data file:

ISA*00*          *00*          *ZZ*330897513      *ZZ*YAXBCX         *241018*0307*^*00501*000000101*0*P*:~
TA1*101*241018*0307*A*000~
GS*FA*330897513*ABCDEF*20241018*0307*294082671*X*005010X231A1~
ST*999*0001*005010X231A1~
AK1*HC*101*005010X222A1~
AK2*837*101*005010X222A1~
IK3*CLM*289*2010*6~
IK3*CLM*381*2010*6~
IK5*R*5~
AK9*R*1*1*0~
SE*8*0001~
GE*1*294082671~
IEA*1*000000101~

The problem is the TA1 line (second line), which says the file was accepted. Usually TA1 is only included if there's a rejection, but in this case the clearinghouse is including it even though the status is "A".
Looks like the parser is reading it expecting it to be the GS segment (?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions