Provide schemeID for ram:ID

Error FX-SCH-A-000828 Factur-X

Attribute '@schemeID' is required in this context.

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

The ram:ID element is missing the schemeID attribute. This attribute is required in this context.

What the rule means

The schemeID attribute identifies the identifier scheme used for the value in ram:ID.

Please add `schemeID` to the delivery recipient’s tax registration identifier

The ram:ID element for the delivery recipient’s tax registration is missing the schemeID attribute. Add the attribute so the identifier has its required scheme designation.

What to do
  1. Find the ram:ID element in ram:SpecifiedTaxRegistration.
  2. Add the schemeID attribute to that element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ID>123456789</ram:ID>
✓ Correct
<ram:ID schemeID="...">123456789</ram:ID>
Technical details

The test checks whether the schemeID attribute is present on the ram:ID element.

Where the rule applies

The rule applies to the ram:ID element within the delivery recipient’s tax registration.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:ShipToTradeParty/ram:SpecifiedTaxRegistration/ram:ID
Test expression (assert/@test)
@schemeID