Allowed schemeID value for URIID

Error FX-SCH-A-000729 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 is not included in the code list used by this rule. The test also permits an empty value.

What the rule means

schemeID associates the URI identifier with a scheme. A value not listed cannot identify that scheme according to the applicable code list.

Please use an allowed schemeID value for the URIID

The value of schemeID on the URIID element is not included in the applicable code list. You can adjust it using an available entry; this rule also accepts an empty value.

What to do
  1. Find the URIID element in URIUniversalCommunication under ProductEndUserTradeParty.
  2. Use a value from the associated code list for schemeID, or leave the value empty.
  3. Generate the invoice again and validate it again.
Technical details

The test accepts an empty value or a value included in the code list identified as 13.

Where the rule applies

The rule applies to the value of the schemeID attribute on the URIID element in the end user's URIUniversalCommunication.

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