Specify the scheme identifier for the delivery address

Error FX-SCH-A-000849 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 tax-registration element ram:ID has no schemeID attribute. This attribute is required in this context.

What the rule means

The schemeID attribute identifies the scheme of the tax registration stated in ram:ID. Without it, the type of identifier is not clearly specified.

Please add the scheme for the final delivery address’s tax identifier

The tax identifier for the final delivery address does not specify which scheme it belongs to. You can resolve this by adding the identifier in ram:ID.

What to do
  1. Find the tax registration within ram:UltimateShipToTradeParty.
  2. Add the required schemeID attribute to ram:ID.
  3. Recreate the invoice and validate it again.
Technical details

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

Where the rule applies

The rule applies to ram:ID within the tax registration of the final delivery address (ram:UltimateShipToTradeParty).

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