Provide the invoice line price using ChargeAmount

Error FX-SCH-A-000273 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:GrossPriceProductTradePrice or occurs more than once.

What the rule means

ram:ChargeAmount contains the charge amount stated as the gross price of the invoice line.

Please provide the gross price charge amount

ram:ChargeAmount is missing from the invoice line’s gross price or appears more than once. This part requires exactly one such element.

What to do
  1. Open ram:GrossPriceProductTradePrice for the relevant invoice line.
  2. Make sure it contains exactly one ram:ChargeAmount element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:GrossPriceProductTradePrice/>
✓ Correct
<ram:GrossPriceProductTradePrice>
  <ram:ChargeAmount>100.00</ram:ChargeAmount>
</ram:GrossPriceProductTradePrice>
Technical details

Within ram:GrossPriceProductTradePrice, the number of direct ram:ChargeAmount elements is checked to be exactly one.

Where the rule applies

The rule applies to the gross price of the invoice line in ram:GrossPriceProductTradePrice.

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