Use an allowed scheme for the sales agent’s global identifier

Error FX-SCH-A-000742 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 code list used by this rule. The test explicitly allows an empty value.

What the rule means

The scheme identifier must belong to the permitted code set so that the global identifier can be associated with a defined scheme.

Please use an allowed scheme for the sales agent’s global identifier

The scheme identifier on ram:GlobalID does not match a value allowed by this rule. Use a value from the code list provided for this identifier.

What to do
  1. Locate ram:GlobalID for the sales agent and check the value of schemeID.
  2. Replace a disallowed value with one from the code list provided for this identifier.
  3. Generate the invoice again and validate it once more.
Technical details

The rule checks schemeID on ram:GlobalID against the enumeration of code list 11; an empty value also passes this check.

Where the rule applies

The rule applies to the schemeID attribute of the sales agent’s ram:GlobalID in SalesAgentTradeParty.

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