Allowed value for the seller identifier

Error FX-SCH-A-000410 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 on the identifier is non-empty and is not in the code list allowed for this identifier.

What the rule means

The value of schemeID identifies the identifier scheme in use. A value that is not allowed does not identify the seller identifier’s scheme unambiguously.

Please use an allowed `schemeID` for the seller identifier

This check does not recognize the schemeID on the seller identifier as an allowed value. You can address this by using a value from the applicable code list; an empty value is also accepted by this check.

What to do
  1. Locate the identifier in the seller’s ram:SpecifiedLegalOrganization.
  2. Check the value of the schemeID attribute against the allowed code list.
  3. Use a value listed there or leave the value empty.
  4. Generate the invoice again and validate it.
Technical details

The check accepts an empty value or a value from the enumeration with identifier cl[@id=4] in FACTUR-X_MINIMUM_codedb.xml.

Where the rule applies

The rule applies to the identifier in the seller’s ram:SpecifiedLegalOrganization.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID
Test expression (assert/@test)
string-length($codeValue4)=0 or document('FACTUR-X_MINIMUM_codedb.xml')/codedb/cl[@id=4]/enumeration[@value=$codeValue4]