Disallowed schemeID for the delivery destination

Error FX-SCH-A-001125 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 applicable code list. The check also permits an empty code value.

What the rule means

The schemeID identifies the URI scheme. A non-empty value must belong to the codes defined for this field so that the scheme can be identified unambiguously.

Please use an allowed schemeID for the delivery destination

The ram:URIID for an invoice line’s delivery destination contains a schemeID that does not match the applicable code list. You can adjust the entry so that the code value is empty or included in that list.

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

The test accepts an empty $codeValue13 value or a value listed under cl[@id=13] in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:URIID in the communication information of ram:UltimateShipToTradeParty on an invoice line.

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