Use an allowed schemeID value

Error FX-SCH-A-001097 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 is neither empty nor included in the code list with ID 11. As a result, the scheme code used for ram:GlobalID is not accepted.

What the rule means

The scheme code associates the identifier in ram:GlobalID with an allowed identifier type. The check compares the value with code list 11.

Please use an allowed scheme code for the delivery recipient’s GlobalID

The scheme code on ram:GlobalID is not included in the code list checked for this attribute. Use a value listed there for this attribute.

What to do
  1. Locate the @schemeID attribute on ram:GlobalID under ram:ShipToTradeParty.
  2. Compare its value with the entries in code list 11.
  3. Generate the invoice again and validate it once more.
Technical details

The XPath test accepts an empty value or a value listed as an enumeration in FACTUR-X_EXTENDED_codedb.xml under cl[@id=11].

Where the rule applies

The rule applies to the value of the @schemeID attribute on the delivery recipient’s ram:GlobalID under ShipToTradeParty for an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:ShipToTradeParty/ram:GlobalID
Test expression (assert/@test)
string-length($codeValue11)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=11]/enumeration[@value=$codeValue11]