Provide a scheme identifier for ram:ID

Error FX-SCH-A-001104 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 schemeID attribute is missing from ram:ID. Without this attribute, the scheme for the tax registration identifier is not specified.

What the rule means

The schemeID attribute identifies the scheme to which the tax registration identifier belongs.

Please provide the scheme identifier for `ram:ID`

The tax registration identifier in an invoice line’s ship-to address is missing its scheme identifier. You can correct the invoice by adding schemeID to ram:ID.

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

In the context of ram:ID, the rule checks whether the schemeID attribute is present.

Where the rule applies

The rule applies to ram:ID inside ram:SpecifiedTaxRegistration of an invoice line’s ship-to address.

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