Invalid buyer communication scheme identifier

Error FX-SCH-A-000498 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 schemeID attribute on URIID contains a value that is not in the code list defined for this identifier. This check also accepts an empty value.

What the rule means

The communication scheme identifier specifies how the buyer’s address is to be interpreted. A value that is not permitted can prevent unambiguous identification.

Please provide an allowed scheme identifier for the buyer’s communication address

The communication scheme identifier in the buyer’s address is not included in the applicable code list. You can adjust the value using the code list that applies to URIID.

What to do
  1. Check the schemeID attribute of URIID in BuyerTradeParty.
  2. Compare the entered value with the code list for this attribute.
  3. Generate the invoice again and validate it once more.
Technical details

A non-empty value of URIID/@schemeID is checked against the entries in code list 14 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The rule applies to the buyer’s communication address in BuyerTradeParty, specifically to the schemeID attribute of URIID.

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