Allowed value for @schemeID

Error FX-SCH-A-001058 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 not included in the code list for this attribute. An empty value is also accepted by this check.

What the rule means

If @schemeID contains a value, it must use an entry from the specified code list so that the URI scheme is identified consistently.

Please use an allowed value for `@schemeID`

The value provided for @schemeID is not included in the specified code list. You can change the value or leave the attribute empty.

What to do
  1. Find ram:URIID in the URI communication of ram:ItemSellerTradeParty.
  2. Check the value of @schemeID against its specified code list, or leave it empty.
  3. Generate the invoice again and validate it.
Technical details

The check accepts an empty test value or a value listed under code-list ID 13 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to @schemeID on ram:URIID in the URI communication of ram:ItemSellerTradeParty in an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:ItemSellerTradeParty/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]