Invalid scheme identifier for the seller URI

Error FX-SCH-A-000582 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 the @schemeID attribute on ram:URIID is not included in the corresponding code list. The test also accepts an empty value.

What the rule means

The identifier specifies the scheme used to interpret the seller’s URI. A value that is not listed can prevent the URI from being classified unambiguously.

Please check the identifier on the seller URI

The identifier on the seller’s ram:URIID is not included in the applicable code list. You can update the value in this field.

What to do
  1. Find ram:URIID in the seller’s URI communication.
  2. Check the value of the @schemeID attribute against the allowed values.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present in the code list with ID 17.

Where the rule applies

The rule applies to ram:URIID within the seller’s URI communication in the header agreement section.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:URIUniversalCommunication/ram:URIID
Test expression (assert/@test)
string-length($codeValue17)=0 or document('FACTUR-X_EN16931_codedb.xml')/codedb/cl[@id=17]/enumeration[@value=$codeValue17]