At least one VAT breakdown required

Error FX-SCH-A-000173 Factur-X

Element 'ram:ApplicableTradeTax' must occur at least 1 times.

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

ram:ApplicableTradeTax is missing from the settlement section. At least one such element must be present.

What the rule means

ram:ApplicableTradeTax represents the document-level VAT breakdown. At least one element is required so that this breakdown is present in the settlement section.

Please add a VAT breakdown

ram:ApplicableTradeTax is missing from the invoice settlement section. Add at least one element there for the VAT breakdown.

What to do
  1. Add at least one ram:ApplicableTradeTax element to ram:ApplicableHeaderTradeSettlement.
  2. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableHeaderTradeSettlement/>
✓ Correct
<ram:ApplicableHeaderTradeSettlement>
  <ram:ApplicableTradeTax/>
</ram:ApplicableHeaderTradeSettlement>
Technical details

The rule counts the direct ram:ApplicableTradeTax elements under ram:ApplicableHeaderTradeSettlement and requires at least one.

Where the rule applies

The rule applies within the invoice settlement section, ram:ApplicableHeaderTradeSettlement.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement
Test expression (assert/@test)
count(ram:ApplicableTradeTax)>=1