skiptrailer not working?

Post author
Ken

Sent a support request, but maybe the community has experience with this issue.

Using the x12 validation endpoint, with the skiptrailer parameter, we are still getting an error for a GS trailer. I know the skiptrailer parameter is being recognized because without we get a more general trailer error for spec "ef".

 
It validates OK on the EDI Translation web page, once it's been converted to EDI Data. Can anybody help us validate EDI JSON properly without having to add a GS trailer? Or is there a way to validate after being converted to EDI Data?
 
Thanks

{

    "LastIndex": 5,

    "Details": [

        {

            "Index": 1,

            "TransactionIndex": 0,

            "TransactionRef": null,

            "SpecRef": "GS1",

            "SegmentId": "GS",

            "DataElementId": null,

            "DataElementIndex": 0,

            "CompositeIndex": 0,

            "RepIndex": 0,

            "Value": null,

            "Message": "Functional group trailer missing ",

            "Status": "error"

        },

        {

            "Index": 0,

            "TransactionIndex": 0,

            "TransactionRef": null,

            "SpecRef": "ISA0",

            "SegmentId": "ISA",

            "DataElementId": null,

            "DataElementIndex": 0,

            "CompositeIndex": 0,

            "RepIndex": 0,

            "Value": null,

            "Message": "Invalid Control Structure (e.g., Invalid ISA or IEA segment)",

            "Status": "error"

        }

    ],

    "Status": "error"

}

Comments

1 comment

  • Comment author
    Admin

    The skipTrailer parameter allows you to omit the message trailer SE, so it is not validated when messages are created, and is automatically applied when messages are created. It does not apply to the envelope control segments, such as GE or IEA, which should be populated correctly in X12Interchange. 

    0

Please sign in to leave a comment.