At most one participating financial institution entry

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

Only one BT-86 element is allowed on an invoice.

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

Both ram:PayeeSpecifiedCreditorFinancialInstitution and ram:PayerSpecifiedDebtorFinancialInstitution are present within the same payment instruction. The test allows neither or at most one of these elements to be present.

What the rule means

The BT-86 financial institution entry must not be provided through both elements named in the test within the same payment instruction.

Affected fields BT-86
Please specify no more than one participating financial institution per payment instruction

A payment instruction contains both entries for the participating financial institution. The rule allows neither entry or just one of them.

What to do
  1. Check ram:PayeeSpecifiedCreditorFinancialInstitution and ram:PayerSpecifiedDebtorFinancialInstitution within the same payment instruction.
  2. Remove one of the two entries if both are present.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:PayeeSpecifiedCreditorFinancialInstitution/>
  <ram:PayerSpecifiedDebtorFinancialInstitution/>
</ram:SpecifiedTradeSettlementPaymentMeans>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:PayeeSpecifiedCreditorFinancialInstitution/>
</ram:SpecifiedTradeSettlementPaymentMeans>
Good to know

The test allows either ram:PayeeSpecifiedCreditorFinancialInstitution or ram:PayerSpecifiedDebtorFinancialInstitution; both may also be absent.

Technical details

The XPath excludes the simultaneous presence of ram:PayeeSpecifiedCreditorFinancialInstitution and ram:PayerSpecifiedDebtorFinancialInstitution within the context; the absence of both elements is also permitted.

Where the rule applies

The rule applies to the participating financial institution entries within each ram:SpecifiedTradeSettlementPaymentMeans entry.

Context (rule/@context)
//ram:SpecifiedTradeSettlementPaymentMeans
Test expression (assert/@test)
( ram:PayeeSpecifiedCreditorFinancialInstitution or ram:PayerSpecifiedDebtorFinancialInstitution ) or ( not(ram:PayeeSpecifiedCreditorFinancialInstitution) and not(ram:PayerSpecifiedDebtorFinancialInstitution) )