ram:ID requires the schemeID attribute

Error FX-SCH-A-001002 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 for the payee’s tax registration does not have a schemeID attribute.

What the rule means

The schemeID attribute identifies the scheme of the tax registration identifier and is required in this XML context.

Please add `schemeID` to the payee’s tax identifier

The payee’s tax identifier is missing the schemeID attribute. Add this attribute to the ram:ID element.

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

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

Where the rule applies

The rule applies to the ram:ID of the payee’s tax registration in ram:PayeeTradeParty.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradePaymentTerms/ram:PayeeTradeParty/ram:SpecifiedTaxRegistration/ ram:ID
Test expression (assert/@test)
@schemeID