Checking Element Lengths


    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.


    // 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?