Allowed value for the URI identifier 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 does not match an allowed entry in the code list for this identification scheme.

What the rule means

An allowed value associates the URI identifier with an identification scheme defined in the code list.

Please use an allowed value for the URI identifier scheme

The value of schemeID on ram:URIID is not included in the associated code list. Use a value allowed by that list or leave the value empty.

What to do
  1. Locate ram:URIID in the buyer agent’s communication.
  2. Check the value of schemeID against the code list for this attribute.
  3. Use a value from that list or leave it empty.
  4. Generate the invoice again and validate it.
Technical details

The rule compares the value of schemeID with entries in the referenced code list with identifier 13; an empty value is also accepted.

Where the rule applies

On the schemeID attribute of ram:URIID in the buyer agent’s communication.

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]