Invoice line monetary total

Error FX-SCH-A-000279 Factur-X

Element 'ram:SpecifiedTradeSettlementLineMonetarySummation' 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:SpecifiedTradeSettlementLineMonetarySummation does not occur exactly once in ram:SpecifiedLineTradeSettlement. The element is missing or occurs more than once.

What the rule means

The monetary total must be assigned unambiguously to the invoice line. Exactly one element ensures that this total is neither missing nor stated twice.

Please include the invoice line monetary total exactly once

ram:SpecifiedTradeSettlementLineMonetarySummation is missing for this invoice line or appears more than once. You can adjust the invoice line settlement accordingly.

What to do
  1. Make sure ram:SpecifiedLineTradeSettlement contains exactly one ram:SpecifiedTradeSettlementLineMonetarySummation.
  2. Generate the invoice again and check it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedLineTradeSettlement/>
✓ Correct
<ram:SpecifiedLineTradeSettlement>
  <ram:SpecifiedTradeSettlementLineMonetarySummation/>
</ram:SpecifiedLineTradeSettlement>
Technical details

The check counts the direct ram:SpecifiedTradeSettlementLineMonetarySummation elements in the ram:SpecifiedLineTradeSettlement context and requires a count of 1.

Where the rule applies

In the ram:SpecifiedLineTradeSettlement of an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement
Test expression (assert/@test)
count(ram:SpecifiedTradeSettlementLineMonetarySummation)=1