Use an allowed value for the URI identification scheme

Error FX-SCH-A-000669 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:URIID is neither empty nor included in the code list allowed by this rule.

What the rule means

The rule restricts the URI identification scheme to values listed in code list 13; an empty value is also permitted by the test condition.

Please use an allowed value for the buyer agent’s URI identification scheme

The value of schemeID on ram:URIID is not accepted by this rule. Use a value from the associated code list or leave the value empty.

What to do
  1. Locate ram:URIID under ram:BuyerAgentTradeParty.
  2. Check the value of the schemeID attribute against code list 13, or leave it empty.
  3. Generate the invoice again and validate it once more.
Technical details

The check tests whether the value is empty or appears as an enumeration in codedb/cl[@id=13].

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID in the buyer agent’s communication address under ram:BuyerAgentTradeParty.

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