>_ Analyst Engineering

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

CodeAG02
FamilyAgent 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

All ISO 20022 reason codes

Read next

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.

Need the whole flow on one page? The ISO 20022 Payment Flow Cheat Sheet maps every system, status, and message of a payment.

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.