Use an allowed identifier code for the URI

Error FX-SCH-A-000852 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 on ram:URIID is neither empty nor included in the code list used by this rule.

What the rule means

The code list restricts the allowed identifier schemes for the URI identifier so that its type is encoded consistently.

Please use an allowed identifier scheme for the URI

The value of schemeID on ram:URIID is not accepted by this rule. An empty value or a value included in the associated code list is allowed.

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

The test accepts an empty value or a value listed in the code list with identifier 13.

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID in the ultimate ship-to party’s URI communication.

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