Buyer agent tax registration required

Error FX-SCH-A-000665 Factur-X

Element 'ram:ID' 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:SpecifiedTaxRegistration is missing ram:ID, or the element occurs more than once. Exactly one ram:ID must be present in this context.

What the rule means

The tax registration requires exactly one identifier to state the buyer agent’s tax registration entry.

Please provide exactly one identifier for the buyer agent’s tax registration

ram:SpecifiedTaxRegistration for the buyer agent is missing ram:ID, or it contains the element more than once. You can adjust the entry so that it contains exactly one identifier.

What to do
  1. Find ram:SpecifiedTaxRegistration under ram:BuyerAgentTradeParty.
  2. Ensure that it contains exactly one ram:ID element.
  3. Generate the invoice again and validate it.
Technical details

The check verifies that ram:SpecifiedTaxRegistration contains exactly one direct ram:ID element.

Where the rule applies

Applies to the buyer agent’s ram:SpecifiedTaxRegistration.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:BuyerAgentTradeParty/ram:SpecifiedTaxRegistration
Test expression (assert/@test)
count(ram:ID)=1