ram:ChargeAmount must be present

Error FX-SCH-A-000532 Factur-X

Element 'ram:ChargeAmount' 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:ChargeAmount is missing from ram:NetPriceProductTradePrice or occurs more than once. Exactly one ram:ChargeAmount is required.

What the rule means

ram:ChargeAmount contains the net price of the invoice line. An unambiguous price entry requires exactly one such element.

Please add the invoice line’s net price

ram:ChargeAmount is missing from the invoice line’s net price or occurs more than once. Add exactly one such element.

What to do
  1. Locate ram:NetPriceProductTradePrice for the affected invoice line.
  2. Make sure it contains exactly one ram:ChargeAmount.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:NetPriceProductTradePrice/>
✓ Correct
<ram:NetPriceProductTradePrice>
  <ram:ChargeAmount>1</ram:ChargeAmount>
</ram:NetPriceProductTradePrice>
Technical details

Within ram:NetPriceProductTradePrice, the check is count(ram:ChargeAmount)=1.

Where the rule applies

The rule applies to ram:NetPriceProductTradePrice of an invoice line.

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