Permitted scheme for the buyer’s electronic address

Error FX-SCH-A-000571 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 not included in the designated code list. The check permits an empty value or a value listed there.

What the rule means

schemeID identifies the scheme of the buyer’s electronic address. A permitted value allows that address to be classified unambiguously.

Please use a permitted scheme for the buyer’s electronic address

The scheme for the buyer’s electronic address is not included in the designated code list. You can leave the value empty or use a value permitted in that list.

What to do
  1. Check ram:URIID within ram:URIUniversalCommunication under BuyerTradeParty.
  2. Check the schemeID value against its code list; the value may also be empty.
  3. Generate the invoice again and validate it once more.
Technical details

The test passes if the checked value is empty or appears as an @value in the enumeration of code list ID 17.

Where the rule applies

The rule applies to the schemeID attribute of ram:URIID within the URI communication of BuyerTradeParty.

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