Malformed EDI Data

Index

    Malformed EDI Data

    EDIValidator possesses a very complex validation engine that enables it to load and validate EDI files. During the validation process EDIValidator may encounter many warnings and errors. It stores these messages in its Errors and Warnings collections. When validating large EDI files these collections can grow considerably. EDI files with a considerably large amount of errors or warnings may lead to an OutOfMemoryException being thrown. To prevent this situation from occurring developers can set the MaxErrorsBeforeThrowingException property to the maximum number of errors or warnings that EDIValidator encounters before throwing an exception. This will prevent the memory issues.

    Example

    validator.MaxErrorsBeforeThrowingException = 50000;

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