Use an allowed schemeID value for the seller’s legal identifier

Error FX-SCH-A-000778 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 non-empty value of schemeID on the seller’s legal organization ID is not included in the list of values allowed for it.

What the rule means

The value list defines which identifiers may be used as the scheme for the seller’s legal organization identifier. A value outside that list is not permitted for this purpose.

Please use an allowed schemeID for the seller’s legal identifier

The value of schemeID on the seller’s legal identifier is not allowed. Use a value from the list provided for this attribute.

What to do
  1. Locate ID in the seller’s SpecifiedLegalOrganization.
  2. Check the value of schemeID against the list provided for this attribute.
  3. Replace a value that is not listed with an allowed value, or leave the attribute empty.
  4. Generate the invoice again and validate it.
Technical details

An empty value passes this check; a non-empty value must occur in code list 12 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the schemeID attribute on the ID of the seller’s legal organization (SpecifiedLegalOrganization).

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