Checking For Trailing Empty Elements

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~
     
    The EDIDocument component automatically removes trailing empty data elements when creating EDI documents.

    Example

    ediValidator.CheckForEmptyTrailingElements = true;
    in EDI Validator
    Did this article answer your question?