Allowed seller identifier scheme

Error FX-SCH-A-000778 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 used by this rule.

What the rule means

If an identification scheme is provided for ram:ID, it must match an allowed value from the code list.

Please check the seller organization's identification scheme

The identification scheme in @schemeID was not recognized as an allowed value. You can correct it using an allowed value or leave it empty.

What to do
  1. Find ram:ID in the seller's legal organization information.
  2. Check the value of @schemeID and use a value allowed by the code list or leave it empty.
  3. Generate the invoice again and validate it.
Technical details

The test allows an empty value or checks @schemeID against the enumeration in code list ID 12.

Where the rule applies

The rule applies to the @schemeID attribute of ram:ID in the seller's legal organization information.

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