Use an allowed schemeID value 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 code list 13 used for this context.

What the rule means

The code list defines which values are allowed for schemeID in this context. A value not listed is not allowed for this entry.

Please use an allowed schemeID value for the URI identifier

The value of schemeID on ram:URIID is not included in the code list for this context. Use a value listed there for this attribute.

What to do
  1. Find the schemeID attribute on the invoicee’s ram:URIID.
  2. Compare its value with the allowed values in code list 13.
  3. Replace any unlisted value with one listed there.
  4. Generate the invoice again and validate it again.
Technical details

The test accepts an empty code value or a value present in the enumeration with id=13 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the schemeID attribute on ram:URIID in the URI communication entry of ram:InvoiceeTradeParty.

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]