HL7 AE — Application Error
The receiving application understood the message but could not process it because of an error in the message content or an application-level failure. The sender is generally expected to correct and resend.
When you see AE (Acknowledgment Code)
Returned in MSA-1 when the message was structurally valid enough to parse, but processing failed — for example a required field was missing, a coded value was invalid, or the application hit an internal error. An ERR segment usually accompanies AE with a specific Table 0357 code.
Common causes
- A required field was empty (often surfaced as Table 0357 code 101).
- A coded value (e.g. gender, marital status) was not in the receiver's expected table (code 103).
- Data type mismatch — e.g. text where a number/date was expected (code 102).
- Application-internal error such as a database constraint or lock (codes 206/207).
How to fix it
- 1Read the accompanying ERR segment — ERR-3 carries the Table 0357 error condition code and ERR-7/ERR-8 often carry a human-readable reason and the offending location (e.g. PID.5).
- 2Fix the specific field identified, then resend. AE means the message can usually succeed once corrected.
- 3If no ERR detail is provided, capture the raw message and check the receiving application's processing log for the underlying exception.
Example ACK message
A representative acknowledgment carrying MSA-1 = AE. Open it in the HL7 Viewer to inspect every field.
1MSH||^~\&|RECEIVER|HOSP|SENDER|HOSP|20260310143310||ACK^A01^ACK|ACK00002|P|2.5.1 2MSA||AE|MSG00001|Error processing message 3ERR||||101^Required field missing^HL70357|E|||PID.5 (Patient Name) is required
Related codes
The receiving application successfully received, understood, and processed the message.
The receiving application rejected the message and did not process it — typically because of a structural, version, or environmental problem the sender cannot fix by changing one field value.
In enhanced acknowledgment mode, CE indicates an error occurred while the receiver attempted to accept and commit the message to storage.
Frequently asked questions
What does AE mean in an HL7 ACK?
AE in MSA-1 means Application Error — the receiver understood the message but could not process it due to a content or application error. Check the accompanying ERR segment for the specific cause, fix it, and resend.
What is the difference between AE and AR?
AE (Application Error) means the message was understood but a processing error occurred — usually correctable by fixing field content. AR (Application Reject) means the message was rejected at a structural or environmental level, such as an unsupported version or message type, and is not retried until the configuration is changed.
Debug your ACK in the viewer
Paste the ACK (or original message) and get instant segment parsing, MSA/ERR decoding, and validation. Free, client-side, no signup.
Open HL7 Message Viewer →All HL7 error & ACK codes
Browse every acknowledgment code (Table 0008) and error condition code (Table 0357) with causes, fixes, and examples.
HL7 Error Code Reference →