Checking Element Lengths

Index

    Checking Element Lengths

    EDIValidator automatically checks every data element to see if it conforms to its minimum and maximum length requirements. If a data element’s data value does not fit these requirements a validation error will be logged. You have the option of turning this checking off for debugging purposes.

    Example

    // Create a new instance of EDIValidator
    EDIValidator validator = new EDIValidator();

    // Turn off element length checking
    ediValidator.CheckMinMaxRequirements = false;

    in EDI Validator
    Did this article answer your question?