Invalid exemption reason code

Error FX-SCH-A-000855 Factur-X

Value of 'ram:ExemptionReasonCode' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

If ram:ExemptionReasonCode is not empty, its value must be present in the exemption reason code list. The supplied value is not included in that list.

What the rule means

The code identifies why the related transaction is treated as exempt from VAT. A code that is not permitted makes this information ambiguous for business interpretation.

Please use an allowed exemption reason code

The exemption reason code in ram:ExemptionReasonCode is not recognized. You can update the code or leave the element empty.

What to do
  1. Check the value of ram:ExemptionReasonCode.
  2. Use a value allowed by the code list or leave the element empty.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value present in the code list identified by 25.

Where the rule applies

The rule applies to the exemption reason code ram:ExemptionReasonCode within the document-level VAT breakdown.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:ApplicableTradeTax/ram:ExemptionReasonCode
Test expression (assert/@test)
string-length($codeValue25)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=25]/enumeration[@value=$codeValue25]