ISO 20022 reason code
AG02: Invalid bank operation code
AG02 is the ISO 20022 reason code for invalid bank operation code. The bank operation code in the message is not valid for the receiver. It is a message-construction problem between banks, not a customer problem.
Resend?
Correct the data, then resend
Correct the operation code in the mapping and resend. The customer did nothing wrong.
AG02 at a glance
| Code | AG02 |
|---|---|
| Family | Agent or agreement (AG) |
| As a status reason | Bank Operation code specified in the message is not valid for receiver ExternalStatusReason1Code, in pacs.002, pain.002 at StsRsnInf/Rsn/Cd |
| As a return reason | Bank Operation code specified in the message is not valid for receiver ExternalReturnReason1Code, in pacs.004 at RtrRsnInf/Rsn/Cd |
Official definitions from the ISO 20022 External Code Sets. Your scheme rulebook decides where the code is permitted.
What usually causes AG02?
- A legacy MT-style operation code carried into a field the receiver does not accept
- A wrong service or operation value set by the sending bank's mapping
What should an analyst specify for AG02?
- Route AG02 to the payments operations or mapping team, never to a customer-facing message.
- Add the code to regression tests whenever the mapping between legacy formats and ISO 20022 changes.
Where AG02 appears in the XML
Illustrative fragment of a pacs.002 (FI to FI payment status report). Identifiers are examples.
<TxInfAndSts>
<OrgnlEndToEndId>E2E-20261116-0001</OrgnlEndToEndId>
<TxSts>RJCT</TxSts>
<StsRsnInf>
<Rsn>
<Cd>AG02</Cd>
</Rsn>
</StsRsnInf>
</TxInfAndSts> A test case for AG02
Given a pacs.008 built with an operation code the receiving bank does not accept
When the receiver rejects with AG02
Then an operations case opens with the original message attached, and the customer is not notified of a data error
Related reason codes
Read next
- MT to ISO 20022: The Message Mapping Every Payments Analyst Needs Which ISO 20022 message replaces each SWIFT MT: MT103 to pacs.008, MT202 to pacs.009, MT940 to camt.053, and the traps in the mapping. A reference table.
- Reading an ISO 20022 Usage Guideline: The Four Layers That Decide Your Field Rules A field can be optional in ISO 20022, mandatory in CBPR+, forbidden by your correspondent, and absent from your database. How to build the net rule matrix.
Questions about AG02
What does ISO 20022 reason code AG02 mean?
AG02 means: Bank Operation code specified in the message is not valid for receiver The bank operation code in the message is not valid for the receiver. It is a message-construction problem between banks, not a customer problem.
Should a payment rejected with AG02 be resent?
Correct the data, then resend. Correct the operation code in the mapping and resend. The customer did nothing wrong.
Which messages carry AG02?
AG02 is defined as a status reason (ExternalStatusReason1Code, used in pacs.002, pain.002) and a return reason (ExternalReturnReason1Code, used in pacs.004). Each scheme rulebook decides whether it is permitted in a given scenario.
Free account
Practice on a payments platform
The Labs put you inside a fictional payments platform where rejections like this one show up in real contracts and events. A free account saves your progress.
Your email is used to sign you in. Nothing else, unless you ask. Privacy.