Use an allowed scheme value for the URI identifier

Error FX-SCH-A-000754 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 code list used by this rule. An empty value is also accepted by this test.

What the rule means

If schemeID has a value, it must be one of the codes allowed for URI identifiers.

Please use an allowed scheme value for the sales agent’s URI identifier

The value of schemeID on ram:URIID is not allowed by the code list used here. You can replace it with a value allowed by this rule or leave it empty.

What to do
  1. Check the value of the schemeID attribute on ram:URIID.
  2. Replace it with a value included in code list 13, or leave it empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present in the enumeration of code list 13.

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID in the sales agent’s URI communication in the seller section.

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