If an application detects an error while processing a query, it responds by returning an Application Error (AE) or Application Reject (AR) condition in the MSA segment of the applicable query response message (DSR, TBR or ERP). The responding application values MSA-6 error condition with the appropriate error code and message. The continuation (DSC) segment is not sent or, if it is, its continuation pointer field (DSC-1-continuation pointer )is null. If the QAK segment is being used, the field QAK-2-query response status is valued appropriately with either AE (application error) or AR (application reject).
Note: If the responding application successfully processes the query, but is unable to find any qualifying data, this is not an error condition. The responding application returns an Application Accept (AA) in the MSA segment of the query response message, but does not return any data segments (DSP, RDT, or event replay segments). The continuation (DSC) segment is not sent or, if it is, its continuation pointer field (DSC-1- continuation pointer) is null. If the QAK segment is being used, the field QAK-2-query response status is valued with NF (no data found, no errors). |