Use an IBAN or a proprietary account ID

Error CII-SR-470 Syntax (UBL/CII)

Either the IBAN or a Proprietary ID (BT-84) shall be used.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

In ram:PayeePartyCreditorFinancialAccount, either both ram:IBANID and ram:ProprietaryID are missing, or both are present. Exactly one of the two must be supplied.

What the rule means

For payment means 30 or 58, the payee’s account must be identified in exactly one way: by an IBAN or by the payee’s proprietary identifier.

Affected fields BT-84
Please provide an IBAN or a proprietary ID for the payee’s account

The payee’s account does not have exactly one account identifier for the selected payment means. You can resolve this by supplying exactly one of the two accepted identifiers.

What to do
  1. In ram:PayeePartyCreditorFinancialAccount, provide either ram:IBANID or ram:ProprietaryID.
  2. If you use an IBAN, check the value of BankAccount.IBAN.
  3. Remove the other identifier if both are present.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>30</ram:TypeCode>
  <ram:PayeePartyCreditorFinancialAccount>
    <ram:IBANID>DE89370400440532013000</ram:IBANID>
    <ram:ProprietaryID>PAYEE-001</ram:ProprietaryID>
  </ram:PayeePartyCreditorFinancialAccount>
</ram:SpecifiedTradeSettlementPaymentMeans>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>30</ram:TypeCode>
  <ram:PayeePartyCreditorFinancialAccount>
    <ram:IBANID>DE89370400440532013000</ram:IBANID>
  </ram:PayeePartyCreditorFinancialAccount>
</ram:SpecifiedTradeSettlementPaymentMeans>
Check in FactoorSharp
  • BankAccount.IBAN (BT-84)
Technical details

The XPath test requires exactly one of the child elements ram:IBANID and ram:ProprietaryID to be present; having both or neither fails the test.

Where the rule applies

The rule applies to payment means with ram:TypeCode 30 or 58 and the payee’s account in ram:SpecifiedTradeSettlementPaymentMeans.

Context (rule/@context)
//ram:SpecifiedTradeSettlementPaymentMeans[ some $code in tokenize('30 58', '\s') satisfies normalize-space(ram:TypeCode) = $code ]
Test expression (assert/@test)
( ram:PayeePartyCreditorFinancialAccount/ram:IBANID or ram:PayeePartyCreditorFinancialAccount/ram:ProprietaryID ) and not( ram:PayeePartyCreditorFinancialAccount/ram:IBANID and ram:PayeePartyCreditorFinancialAccount/ram:ProprietaryID )