Include the tax registration identifier for the tax representative

Error FX-SCH-A-000689 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:ID is missing from ram:SpecifiedTaxRegistration or occurs more than once. It must occur exactly once.

What the rule means

ram:ID contains the tax registration identifier. Exactly one such element is required for the tax representative’s tax registration.

Please include the tax representative’s tax registration identifier

ram:ID is missing or appears more than once in the buyer’s tax representative’s tax registration. This section needs exactly one such element.

What to do
  1. Locate ram:SpecifiedTaxRegistration for the buyer’s tax representative.
  2. Ensure that it contains exactly one ram:ID.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>123456</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The number of direct ram:ID elements in ram:SpecifiedTaxRegistration must be exactly one.

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration for the buyer’s tax representative.

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