Use an allowed schemeID value for the URI identifier

Error FX-SCH-A-000693 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 designated code list. An empty value passes this specific test.

What the rule means

A value from the designated code list associates the URI identifier with a recognized scheme. The test also permits an empty value.

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

The supplied schemeID value is not included in the designated code list. Use a value listed there or leave the value empty.

What to do
  1. Check the value of the schemeID attribute on ram:URIID.
  2. Use a value from the code list designated for this identifier or leave the value empty.
  3. Generate the invoice again and validate it again.
Technical details

The test passes if $codeValue13 is empty or its value is listed as an enumeration under cl[@id=13] in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID in the communication of ram:BuyerTaxRepresentativeTradeParty.

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