Unallowed identifier scheme for the manufacturer organization

Error FX-SCH-A-001165 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 is not empty and does not match an entry permitted by the code list for identifier schemes.

What the rule means

The schemeID attribute indicates the scheme used to interpret the legal organization's identifier. An unallowed value does not identify the identifier scheme unambiguously.

Please use an allowed identifier scheme for the manufacturer organization

The identifier scheme for the product manufacturer's legal organization is not allowed. You can correct the invoice by using an allowed schemeID value for ram:ID.

What to do
  1. Locate ram:ID under ram:SpecifiedLegalOrganization in ram:ManufacturerTradeParty.
  2. Check the value of the schemeID attribute.
  3. Use a value allowed by the code list.
  4. Generate the invoice again and validate it again.
Technical details

The test allows an empty value. Otherwise, the value of the schemeID attribute must match an entry in the external code list with identifier 12.

Where the rule applies

The rule applies to the schemeID attribute of ram:ID for the product manufacturer's legal organization.

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