Permitted scheme for the buyer identifier

Error FX-SCH-A-000567 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:GlobalID 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 used to interpret the buyer’s global identifier. A permitted value allows that identifier to be classified unambiguously.

Please use a permitted scheme for the buyer’s global identifier

The scheme for the buyer’s global 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:GlobalID under BuyerTradeParty.
  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 15.

Where the rule applies

The rule applies to ram:GlobalID of BuyerTradeParty in the invoice header and checks its schemeID attribute.

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