Identify the legal organization of the delivery recipient

Error FX-SCH-A-001101 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 of the legal organization has no @schemeID attribute. As a result, the scheme used to interpret the identifier is not specified.

What the rule means

@schemeID associates the identifier with an identification scheme. Without it, the identifier cannot be unambiguously associated with its scheme.

Please specify the identification scheme for the delivery recipient’s organization

The ram:ID element for the delivery recipient’s legal organization is missing @schemeID. You can resolve this by adding the identification scheme there.

What to do
  1. Add @schemeID to the ram:ID element of the delivery recipient’s legal organization.
  2. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ID>123</ram:ID>
✓ Correct
<ram:ID schemeID="...">123</ram:ID>
Technical details

The Schematron check requires the @schemeID attribute in the context of ram:ID.

Where the rule applies

The rule applies to ram:ID of the legal organization under ram:ShipToTradeParty of an invoice line.

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