Provide the tax basis total 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:SpecifiedTradeSettlementHeaderMonetarySummation does not contain ram:TaxBasisTotalAmount exactly once. The element is missing or occurs more than once.

What the rule means

ram:TaxBasisTotalAmount gives the invoice’s total taxable amount. Requiring it exactly once makes this total unambiguous.

Please provide the tax basis total exactly once

The totals are missing ram:TaxBasisTotalAmount, or the element appears more than once. You can resolve this by providing it exactly once.

What to do
  1. Open ram:SpecifiedTradeSettlementHeaderMonetarySummation.
  2. Make sure it contains ram:TaxBasisTotalAmount exactly once.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementHeaderMonetarySummation/>
✓ Correct
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
  <ram:TaxBasisTotalAmount>0</ram:TaxBasisTotalAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Technical details

The test counts the direct ram:TaxBasisTotalAmount children of ram:SpecifiedTradeSettlementHeaderMonetarySummation and requires a count of 1.

Where the rule applies

In the document-level totals within ram:SpecifiedTradeSettlementHeaderMonetarySummation.

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