Allowed electronic address scheme

Error FX-SCH-A-000831 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 code list checked for this attribute. An empty value is not rejected by this test, but any value that is present must be allowed.

What the rule means

The scheme identifies how the electronic address is designated. A value that is not allowed cannot identify it according to the applicable code set.

Please use an allowed scheme for the electronic address

The value of schemeID on ram:URIID is not allowed for this electronic address. You can correct it using the code list applicable to this attribute.

What to do
  1. Check the value of schemeID on the ram:URIID element.
  2. Replace any value that is present with an entry from the code list allowed for this attribute.
  3. Generate the invoice again and check it again.
Technical details

An empty string passes the check; otherwise, the value of schemeID must be present in the enumeration of code list 13.

Where the rule applies

The rule applies to the value of the schemeID attribute on ram:URIID in the goods recipient’s ram:URIUniversalCommunication.

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