Exactly one calculated tax amount required

Error FX-SCH-A-000952 Factur-X

Element 'ram:CalculatedAmount' must occur exactly 1 times.

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

ram:CalculatedAmount is missing from ram:IncludedTradeTax or occurs more than once. It must occur exactly once in this tax block.

What the rule means

ram:CalculatedAmount contains the calculated tax amount for the advance payment. Exactly one amount is required so that this tax block contains the intended amount unambiguously.

Please provide exactly one calculated tax amount for the advance payment

ram:CalculatedAmount is missing from tax block ram:IncludedTradeTax or appears more than once. Exactly one element is provided for this block.

What to do
  1. Open ram:IncludedTradeTax within the advance payment.
  2. Make sure ram:CalculatedAmount occurs exactly once.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:IncludedTradeTax/>
✓ Correct
<ram:IncludedTradeTax>
  <ram:CalculatedAmount>0</ram:CalculatedAmount>
</ram:IncludedTradeTax>
Technical details

The test counts ram:CalculatedAmount elements under ram:IncludedTradeTax and requires exactly one.

Where the rule applies

The rule applies to ram:IncludedTradeTax within the advance payment.

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