Permitted scheme for the buyer registration

Error FX-SCH-A-000569 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 schemeID on ram:ID is not included in the designated code list. The check permits an empty value or a value listed there.

What the rule means

schemeID identifies the scheme of the buyer’s legal organization identifier. A permitted value allows that identifier to be classified unambiguously.

Please use a permitted scheme for the buyer registration

The scheme for the buyer’s legal organization identifier is not included in the designated code list. You can leave the value empty or use a value permitted in that list.

What to do
  1. Check ram:ID within the buyer’s ram:SpecifiedLegalOrganization.
  2. Check the schemeID value against its code list; the value may also be empty.
  3. Generate the invoice again and validate it once more.
Technical details

The test passes if the checked value is empty or appears as an @value in the enumeration of code list ID 16.

Where the rule applies

The rule applies to the schemeID attribute of ram:ID within the buyer’s ram:SpecifiedLegalOrganization.

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