Skip to content

997 TA1 valid EDI #46

@Jelenbl

Description

@Jelenbl

Error while processing EDI 997 message. Valid 997 can be structured as ISA->TA1->GS .... GE->IEA

Reproduce -

import { X12Parser } from 'node-x12'

const parser = new X12Parser(true)
const edi997 = 'payload'
const interchange = parser.parse(${edi997})

sample : TA10000000992111121230A*000

ERROR:

ParserError: X12 Standard: TA1 segment cannot appear outside of a functional group.
at X12Parser._processSegment (/Users/joshua/Documents/Coding/Scripts/node_modules/node-x12/index.js:861:27)
at ../node_modules/node-x12/index.js:653:22
at Array.forEach ()
at X12Parser.parse (../node_modules/node-x12/index.js:652:22)
at file:///../parsingEDI.js:5:26
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions