Disallowed identification scheme code

Error FX-SCH-A-001125 Factur-X

Value of '@schemeID' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The value provided for schemeID is not in the code list defined for this identification scheme. This check also accepts an empty value.

What the rule means

schemeID identifies the scheme used to interpret the URI identifier. A disallowed code may prevent the identifier from being classified unambiguously.

Please use an allowed code for the communication identifier’s `schemeID`

The schemeID for the ultimate ship-to party’s ram:URIID contains a code that is not allowed for this identification scheme. You can update the value or leave it empty.

What to do
  1. Check the schemeID attribute on ram:URIID within ram:URIUniversalCommunication.
  2. Use a code allowed by the associated code list, or leave the value empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts either an empty $codeValue13 or a value present in the code list with ID 13.

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID within ram:URIUniversalCommunication of the ultimate ship-to party for an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:UltimateShipToTradeParty/ram:URIUniversalCommunication/ ram:URIID
Test expression (assert/@test)
string-length($codeValue13)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=13]/enumeration[@value=$codeValue13]