Checking For Trailing Empty Elements – JS

Index

    Checking For Trailing Empty Elements

    Some EDI files are considered incorrect if they contain trailing empty data elements or trailing empty composite data elements. EDIValidator automatically checks for this occurrence and a validation error is generated if empty trailing data elements are found.

    An example of a trailing empty data element is:

    SEG*1*2**~

    This segment should have been written as:

    SEG*1*2~

    Example

    validator.CheckForEmptyTrailingElements = true;

    in EDI Validator – JS
    Did this article answer your question?