One BIC identifier is required

Error FX-SCH-A-000292 Factur-X

Element 'ram:BICID' must occur exactly 1 times.

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

ram:BICID is missing from ram:PayeeSpecifiedCreditorFinancialInstitution or occurs more than once. Exactly one ram:BICID element is required.

What the rule means

ram:BICID identifies the payee’s financial institution by its BIC. The payment details require exactly one such identifier at this location.

Please provide exactly one BIC identifier for the financial institution

ram:BICID is missing from the payment details or appears more than once. You can resolve this by providing exactly one BIC identifier there.

What to do
  1. Find ram:PayeeSpecifiedCreditorFinancialInstitution in the payment details.
  2. Add or remove ram:BICID elements so that exactly one is present.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:PayeeSpecifiedCreditorFinancialInstitution/>
✓ Correct
<ram:PayeeSpecifiedCreditorFinancialInstitution>
  <ram:BICID>ABCDEFGH</ram:BICID>
</ram:PayeeSpecifiedCreditorFinancialInstitution>
Technical details

The test counts the direct ram:BICID elements in ram:PayeeSpecifiedCreditorFinancialInstitution and requires exactly one occurrence.

Where the rule applies

The rule applies to ram:PayeeSpecifiedCreditorFinancialInstitution in the payment details.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeeSpecifiedCreditorFinancialInstitution
Test expression (assert/@test)
count(ram:BICID)=1