Provide an allowed value for schemeID

Error FX-SCH-A-001107 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 provided for schemeID on ram:URIID is not included in the designated code list. An empty value is also accepted by this check.

What the rule means

The rule restricts schemeID to values in the code list identified by 13. A value outside this list is not allowed for this field.

Please choose an allowed value for `ram:URIID`’s `schemeID`

The value of schemeID on ram:URIID is not in the designated code list. You can replace it with a listed value; this rule accepts an empty value.

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

A non-empty value is checked against the enumeration entries of code list cl with id=13 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID inside ram:URIUniversalCommunication of an invoice line’s ship-to address.

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