Use an allowed scheme for the URI identifier

Error FX-SCH-A-000885 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 on ram:URIID is not included in the code list allowed for this attribute. The test also permits an empty value.

What the rule means

@schemeID identifies the scheme of the URI identifier. A non-empty value must match an entry in the code list designated for this attribute.

Please use an allowed scheme for the invoice recipient’s URI identifier

The value of @schemeID on ram:URIID does not match the allowed code list. Use a value permitted for this attribute; the rule also allows an empty value.

What to do
  1. Locate ram:URIID in the invoice recipient’s URI communication entry.
  2. Compare the non-empty value of @schemeID with the values allowed for this attribute, or leave it empty.
  3. Generate the invoice again and validate it once more.
Technical details

The XPath accepts an empty @schemeID value or a value present in the code list identified by 13.

Where the rule applies

The value of the @schemeID attribute on ram:URIID in the invoice recipient’s URI communication entry.

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