IPWorks EDIFACT 2020 Delphi Edition

Questions / Feedback?

ValidationErrorDetail Type

Details of the validation error.

Remarks

After Validate is called the ValidationErrors property is populated with details of each error that was encountered. Examine the fields for specific information on the type of error encountered.

Fields

Column
Integer

The column number in the EDI document where the error occurred. This value may be used in conjunction with the Line property to determine the exact location within the EDI document where the error occurred.

ElementErrorCode
String

The error code which may be used in the IK403 field of a 999.

Note: This property is specific to X12 documents and is not applicable to other document types.

ElementPosition
Integer

This property holds the position of the element where the error occurred.

ErrorCode
Integer

The ErrorCode property contains the type of error encountered. Possible values are:

0 The component is not required but is present.
1 Invalid segment count.
2 Invalid transaction count.
3 Invalid group count.
4 Invalid interchange control number.
5 Invalid group control number.
6 Invalid transaction control number.
10 A required data element is missing.
11 Invalid field length.
12 Invalid field value.
13 A required component is missing.
14 The data element is not defined but is present.
30 Required segment is missing.
31 Required loop is missing.
32 Occurrences exceeds the schema defined limit.
33 Occurrences is less than the schema defined minimum.
40 Paired rule validation failed, the pair of elements must be present.
41 At least one of element is required, see message for list of elements.
42 Exclusion validation failed, only one of the elements can be present.
43 Conditional rule validation failed.
44 List conditional rule validation failed.
45 First then none validation failed. The presence of an element requires that other specific elements must not be present.
46 Only one or none of the elements can be present.

Line
Integer

The line number in the EDI document where the error occurred. This value may be used in conjunction with the Column property to determine the exact location within the EDI document where the error occurred.

Message
String

Message is a textual description of the error.

SegmentErrorCode
String

The error code which may be used in the IK304 field of a 999.

Note: This property is specific to X12 documents and is not applicable to other document types.

SegmentNumber
Integer

This property is the index of the segment where the error occurred.

SegmentTag
String

This property specifies the tag name of the segment where the error occurred.

TechnicalErrorCode
String

This property holds a technical error code that helps identify structural issues with the document. For instance when parsing an X12 document this will hold values that may be used for TA1 error codes.

Note: This property is specific to X12 documents and is not applicable to other document types.

Possible values are:

001The Interchange Control Numbers in the header ISA 13 and trailer IEA02 do not match.
014Invalid interchange date value (non-numeric characters or wrong length).
015Invalid interchange time value (non-numeric characters or wrong length).
022The ISA segment is missing elements (invalid control structure).
024Invalid interchange content (e.g., Invalid GS segment).

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDIFACT 2020 Delphi Edition - Version 20.0 [Build 8209]