The value of schemeID is not allowed

Error FX-SCH-A-001005 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 of schemeID on ram:URIID is not present in the code list checked by this rule. The test also rejects an empty value.

What the rule means

An allowed schemeID value associates the URI identifier with a scheme recognized by the rules.

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

The value of schemeID on ram:URIID is empty or is not allowed by the checked code list. Use a value included in that code list.

What to do
  1. Locate ram:URIID within ram:URIUniversalCommunication.
  2. Check the value of the schemeID attribute against the code list used by this rule.
  3. Replace an empty or unlisted value with an allowed value.
  4. Regenerate the invoice and validate it again.
Technical details

The test accepts a non-empty value only if it is present in code list 13 in the external FACTUR-X_EXTENDED_codedb.xml file.

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID in the payee’s URI communication details.

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