Allowed scheme for the manufacturer URI

Error FX-SCH-A-001172 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 specified for this field. This test does not reject an empty value as an invalid code.

What the rule means

The code list limits scheme identifiers to the values provided for this purpose. A value not in the list cannot be used as a valid identifier for this URI scheme.

Please choose an allowed scheme for the manufacturer URI

The scheme for the manufacturer URI on an invoice line contains a value that is not provided for this field. Use a value allowed by the code list.

What to do
  1. Locate ram:URIID in the manufacturer details of the affected invoice line.
  2. Check the value of the schemeID attribute against the code list for this field.
  3. Generate the invoice again and validate it.
Technical details

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

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID in the manufacturer details of an invoice line.

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