MajwareMAJWARE
ERR
Message Control8 fields

ERR — Error

Appears in ACK messages when processing fails (AE or AR codes). May appear multiple times for multiple errors.

The ERR segment provides detailed error information when a message fails processing. It is returned with NAK responses and contains structured error codes, severity levels, and diagnostic text to help identify root cause.

Real-World Context

ERR is your diagnostic tool when messages fail. The HL7 error code in ERR.3 tells you the category of failure, while the diagnostic info in ERR.7 gives you the raw system error. Always log the full ERR segment in your interface engine — it is far more useful than just the acknowledgment code alone.

Field Reference

Click any row to see the full description, common values, and troubleshooting tip.

#Field NameTypeReqMax Len
1Error Code and LocationELDO493▶
2Error LocationERLO18▶
3HL7 Error CodeCWER705▶
4SeverityIDO2▶
5Application Error CodeCWEO705▶
6Application Error ParameterSTO80▶
7Diagnostic InformationTXO2048▶
8User MessageTXO250▶

Example Segment

1ERR|||PID^1^5|102^Required field missing^HL70357|E|||Patient last name is required in PID.5.1

Related Segments

Used In Message Types

Parse messages with ERR in real time

Paste any HL7 message into our free viewer. Decodes every segment and field instantly, client-side.

Open HL7 Message Viewer →

Need a message to test with?

Copy a realistic sample for any message type, or open it directly in the viewer. Free, no signup.

Browse HL7 Sample Messages →
← Back to HL7 Segment Reference