Use an allowed schemeID value for the buyer agent’s identifier

Error FX-SCH-A-000657 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 is neither empty nor included in the code list defined for this attribute. The check uses the enumeration with identifier 11 in FACTUR-X_EXTENDED_codedb.xml.

What the rule means

The scheme value of the global identifier must be empty or match an entry in the enumeration defined for this field.

Please use an allowed schemeID value for the buyer agent’s identifier

The schemeID value on ram:GlobalID is not in the designated code list. The check accepts an empty value or a value listed there.

What to do
  1. Check the schemeID value on the buyer agent’s ram:GlobalID.
  2. Use either an empty value or a value from the designated code list.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value present as enumeration/@value under cl[@id=11] in the external code list.

Where the rule applies

The rule applies to the value of the schemeID attribute on the buyer agent’s ram:GlobalID element.

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