Allowed schemeID value for the buyer organization ID

Error FX-SCH-A-000031 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 ram:ID is neither empty nor present in the code list used by this rule.

What the rule means

schemeID identifies the scheme of the organization ID. Its value must be empty or match a value allowed by the code list.

Please use an allowed schemeID value for the buyer organization ID

The schemeID value on the buyer organization ID is not accepted. You can correct it by leaving the attribute empty or using an allowed value.

What to do
  1. Find the ram:ID element in the buyer’s SpecifiedLegalOrganization.
  2. Check the value of the schemeID attribute.
  3. Leave the value empty or use a value allowed by the code list.
  4. Generate the invoice again and validate it once more.
Good to know

An empty schemeID value is also allowed.

Technical details

The rule accepts an empty value or looks up the attribute value in the enumeration of code list 4.

Where the rule applies

The rule applies to the ram:ID element of the legal organization in the buyer details.

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