Error Message Format
Both the validator utilities reports error severity, component, line count, name, and returns a descriptive message. They also report the following specific types of errors encountered. The following error message format is for the EDI and HIPAA connectors:
• Structural - Related to structure: min/max count, elements not defined in schema
• Requirement - Related to requirement of component
• Match - Failure to match the field content
• Skip - Skip of a segment (the segment in the source file is not defined in the schema)
• Duplicate - Field content is duplicated
• Content - Content of the field value does not match the schema definition
• Parsing - Schema failed to parse the source file
Error Severity is associated with error type and reported as Warning, Error, or Fatal Error. This association is subjective. It depends on where the validation fails. Following is the association:
• Warning - Match, Skip, Duplicate, Content
• Error - Structural or Requirement
• Fatal Error - Parsing
Component designates the specific area of the schema or DTD where the validation failure occurs:
• L (Loop)
• S (Segment)
• C (Composite)
• E (Element)
LineCount is schema-specific. Following is a description of start and end segments, and the segments for which LineCount returns 0.
• X12 - LineCount begins at the ST segment when validating X12 (LineCount = 1), and increments by 1 for each subsequent segment. LineCount ends at the SE segment.
Note: X12 - For segments ISA, GS, GE, and IEA, LineCount = 0.
Name is rendered in the following formats:
• Loop Name - [L.xxx!L.xxx]L.xxx or (if no parent loop) L.xxx
• Segment Name - [L.xxx!L.xxx]sss or (if no parent loop) sss
• Composite Name - [L.xxx!L.xxx]sss_seq_ccc or (if no parent loop) sss_seq_ccc
• Element Name - [L.xxx!L.xxx]sss_seq_eee or (if no parent loop) sss_seq_eee
If the Element is inside the Composite, Name is rendered as follows:
[L.xxx!L.xxx]sss_seq_ccc.Comp_seq_eee
xxx loop ID
sss Segment ID
ccc Compsite ID
eee Element ID
The following are the message details for each of the possible errors:
• Loop
• Structural: Error | L | Linecount | Name | Loop maxuse exceeded
• Structural: Error | L | Linecount | Name | Loop minuse not met
• Requirement: Error | L | Linecount | Name | Mandatory loop missing
• Segment
• Structural: Error | S | Linecount | Name | Segment maxuse exceeded
• Structural: Error | S | Linecount | Name | Segment minuse not met
• Match: Warning | S | Linecount | Name | discriminator field failure of segment in schema
• Skip: Warning | S | Linecount | Name | no defined segment in schema
• Structural: Error | S | Linecount | Name | additional elements not defined
• Requirement: Error | S | Linecount | Name | Missing SE segment
• Requirement: Error | S | Linecount | Name | Missing GE segment
• Requirement: Error | S | Linecount | Name | Missing IEA segment
• Requirement: Error | S | Linecount | Name | Mandatory segment missing
• Composite
• Requirement: Error | C | Linecount | Name | Mandatory composite missing
• Requirement: Error | C | Linecount | Name | Nonused composite used
• Element
• Duplicate: Warning | E | Linecount | Name | Duplicate Group Control Number
• Duplicate: Warning | E | Linecount | Name | Duplicate Transaction Set Control Number
• Match: Warning | E | Linecount | Name | Mismatch Number of Included Segments
• Match: Warning | E | Linecount | Name | Mismatch Transaction Set Control Number
• Match: Warning | E | Linecount | Name | Mismatch Number of Transaction Sets Included
• Match: Warning | E | Linecount | Name | Mismatch Group Control Number
• Match: Warning | E | Linecount | Name | Mismatch Number of Included Functional Groups
• Match: Warning | E | Linecount | Name | Mismatch Interchange Control Number
• Requirement: Error | E | Linecount | Name | Value required missing
• Requirement: Error | E | Linecount | Name | Value not required
• Structural: Error | E | Linecount | Name | Minlen not met
• Structural: Error | E | Linecount | Name | Maxlen exceeded
• Content: Warning | E | Linecount | Name | Invalid value
• Content: Warning | E | Linecount | Name | Invalid date format
• Content: Warning | E | Linecount | Name | Invalid time format
• Content: Warning | E | Linecount | Name | Invalid Interchange Control Number
• Content: Warning | E | Linecount | Name | Invalid Group Control Number
• Content: Warning | E | Linecount | Name | Invalid numeric format