Use an allowed scheme for the delivery address 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 not included in the list of values allowed for this attribute.

What the rule means

The schemeID attribute must use a value from the list defined for URI identifiers so that the scheme is specified unambiguously and in accordance with the rule.

Please use an allowed scheme for the final delivery address URI

The value of schemeID on the final delivery address URI is not allowed. Replace it with a value from the designated list.

What to do
  1. Find ram:URIID within the URI communication of ram:UltimateShipToTradeParty.
  2. Check the value of the schemeID attribute against the list of values allowed for this attribute.
  3. Recreate the invoice and validate it again.
Technical details

The rule checks whether the value of schemeID is empty or is included in the enumeration of code list 13 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID within the URI communication of the final delivery address (ram:UltimateShipToTradeParty).

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]