Allowed value for the sender URI scheme

Error FX-SCH-A-000814 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 non-empty value of the schemeID attribute is not included in the code list used by this rule. An empty value also passes this check.

What the rule means

The check restricts non-empty schemeID values to the codes defined for this context. This detects a scheme identifier that is not listed as permitted.

Please use an allowed value for the sender URI scheme

The value entered for schemeID is not included in the code list checked for this field. Using a value listed there resolves the issue.

What to do
  1. Locate ram:URIID under ram:ShipFromTradeParty.
  2. Check the schemeID value against the code list applicable to this field.
  3. Replace a non-empty value that is not listed with a listed value, or leave the attribute empty.
  4. Regenerate the invoice and validate it again.
Technical details

The test passes if $codeValue13 is empty or occurs as an @value in the enumeration of the code list with cl[@id=13].

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID in ram:URIUniversalCommunication under ram:ShipFromTradeParty in the delivery section.

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