Permitted 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

The value in ram:ExemptionReasonCode is not included in the code list defined for this field. The test permits an empty value.

What the rule means

The code identifies the reason for the tax exemption. A permitted code makes this reason consistent and machine-readable.

Please use a permitted exemption reason code

The value in ram:ExemptionReasonCode is not recognized as a permitted exemption reason code. You can update the value or leave it empty.

What to do
  1. Check the value in ram:ExemptionReasonCode.
  2. Use only a value permitted by the code list, or leave the element empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present in code list ID 25 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:ExemptionReasonCode within a document-level ram:ApplicableTradeTax tax entry.

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]