Table of Contents

Search

  1. Preface
  2. Libraries for Industry Standards
  3. Using Libraries
  4. Descriptions of the Libraries
  5. Generate Library Objects

Libraries Guide

Libraries Guide

Library Directories with Validations

Library Directories with Validations

An Edifact library provides schemas and Parsers that validates input against the EDIFACT standard.
A validating Parser does not fail if it encounters non-conforming input. Instead, the Parser labels its XML output with an error-code attribute that has a value specified in the EDIFACT standard. For example, if a mandatory field is missing, both the field and the segment containing it are labeled with error codes. The error output has the following appearance:
<BGM segErrorCd="18"> <R01 compErrorCd="18"> <R01 errorCd="12">352</R01> </R01> ... </BGM>
The Parsers validate the following features of the input:
  • Input type
  • Enumerations
  • Mandatory fields
  • Minimum and maximum length
The following table describes the EDIFACT error codes:
Code
Description
12
Invalid value
13
Missing
18
Unspecified error
35
Too many data element or segment repetitions
36
Too many segment group repetitions
37
Invalid type of character(s)
39
Data element too long
40
Data element too short

0 COMMENTS

We’d like to hear from you!