Specify the legal organization identifier scheme

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 legal organization’s ram:ID element has no schemeID attribute. The scheme to which the identifier value belongs is therefore not specified.

What the rule means

The scheme identifies how the legal organization’s identifier is to be interpreted.

Please specify the legal organization’s identifier scheme

The legal organization identifier for the ship-to party is missing its scheme. Add the attribute to the ram:ID element.

What to do
  1. Find ram:ID under ram:SpecifiedLegalOrganization for the ship-to party.
  2. Add the schemeID attribute to that element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedLegalOrganization>
  <ram:ID>123</ram:ID>
</ram:SpecifiedLegalOrganization>
✓ Correct
<ram:SpecifiedLegalOrganization>
  <ram:ID schemeID="">123</ram:ID>
</ram:SpecifiedLegalOrganization>
Technical details

In the context of ram:SpecifiedLegalOrganization/ram:ID, the check verifies that the schemeID attribute is present.

Where the rule applies

This rule applies to the ram:ID of the ship-to party’s legal organization within 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