Checking If EDI File Passed Validation

Index

    Checking If EDI File Passed Validation

    You can check whether an EDI file passed validation by the EDIValidator through the Passed property

    Example

    // Create a new instance of EDIValidator
    EDIValidator validator = new EDIValidator();
    // Set the EDI rules file
    validator.EDIRulesFile= “C:\\EDIFile.Rules”;

    // Set the EDI file to validate
    validator.EDIFile = “C:\\EDIFile.txt”;

    // Validate
    validator.Validate();

    if (validator.Passed)
    {
      
    // passed
    }
    in EDI Validator
    Did this article answer your question?