Disallowed schemeID value for the URI identifier

Error FX-SCH-A-000814 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 non-empty value of schemeID is not included in the code list allowed for this attribute. An empty value also passes this specific check.

What the rule means

schemeID identifies the scheme of the URI identifier. A disallowed value does not assign the identifier to one of the schemes designated for this context.

Please use an allowed `schemeID` value for the URI identifier

The schemeID value on the dispatch location URI identifier is not included in the designated code list. You can correct it using that list.

What to do
  1. Find ram:URIID in ram:URIUniversalCommunication under ram:ShipFromTradeParty.
  2. Compare the non-empty schemeID value with the values allowed for it.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts either an empty attribute value or a value included in the code list with ID 13.

Where the rule applies

The rule applies to the schemeID attribute on ram:URIID within ram:URIUniversalCommunication under ram:ShipFromTradeParty.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:ShipFromTradeParty/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]