ram:TaxBasisTotalAmount must occur exactly once

Error FX-SCH-A-000041 Factur-X

Element 'ram:TaxBasisTotalAmount' 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:TaxBasisTotalAmount is missing from ram:SpecifiedTradeSettlementHeaderMonetarySummation or occurs more than once. The rule requires exactly one such element.

What the rule means

ram:TaxBasisTotalAmount gives the invoice’s total VAT taxable amount. A single value ensures that this total is unambiguous.

Please provide the invoice’s taxable amount exactly once

The total taxable amount is missing or entered more than once. You can resolve this by having exactly one ram:TaxBasisTotalAmount.

What to do
  1. Find ram:SpecifiedTradeSettlementHeaderMonetarySummation in the invoice.
  2. Check that it contains exactly one ram:TaxBasisTotalAmount.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementHeaderMonetarySummation/>
✓ Correct
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
  <ram:TaxBasisTotalAmount>100.00</ram:TaxBasisTotalAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details

The rule counts the ram:TaxBasisTotalAmount elements directly under ram:SpecifiedTradeSettlementHeaderMonetarySummation and requires the count to equal one.

Where the rule applies

The rule applies to the monetary settlement totals in ram:SpecifiedTradeSettlementHeaderMonetarySummation.

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