Invalid seller legal organization scheme identifier

Error FX-SCH-A-000503 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 schemeID attribute of ID contains a value that is not included in the applicable code list. This check also accepts an empty value.

What the rule means

The scheme identifier specifies how the seller’s legal organization identifier is to be interpreted. A value that is not permitted can prevent unambiguous classification.

Please provide an allowed scheme identifier for the seller’s legal organization

The scheme identifier for the seller’s legal organization is not included in the applicable code list. You can adjust the value using the code list that applies to ID.

What to do
  1. Check the schemeID attribute of ID in SpecifiedLegalOrganization of SellerTradeParty.
  2. Compare the entered value with the code list for this attribute.
  3. Generate the invoice again and validate it once more.
Technical details

A non-empty value of SpecifiedLegalOrganization/ID/@schemeID is checked against the entries in code list 12 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The rule applies to the seller’s legal organization identifier in SpecifiedLegalOrganization, specifically to the schemeID attribute of ID.

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_BASIC_codedb.xml')/codedb/cl[@id=12]/enumeration[@value=$codeValue12]