Allowed schemeID value

Error FX-SCH-A-001051 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 used for this check.

What the rule means

schemeID identifies the scheme of the identifier in ram:ID. A non-empty value must match an entry in the associated code list.

Please check `schemeID` for the item seller’s legal organization

The schemeID value for the item seller’s ram:SpecifiedLegalOrganization was not recognized as an allowed scheme value. You can compare it with the applicable code list.

What to do
  1. Find ram:ID in ram:SpecifiedLegalOrganization of the ram:ItemSellerTradeParty.
  2. Check the schemeID value against code list ID 12.
  3. Generate the invoice again and validate it once more.
Technical details

The XPath test accepts an empty value or a value present in code list ID 12 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the schemeID attribute of ram:ID in ram:SpecifiedLegalOrganization of the item seller on an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:ItemSellerTradeParty/ram:SpecifiedLegalOrganization/ ram:ID
Test expression (assert/@test)
string-length($codeValue12)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=12]/enumeration[@value=$codeValue12]