Gross price amount

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 does not occur exactly once in ram:GrossPriceProductTradePrice. The amount element is either missing or present more than once.

What the rule means

ram:ChargeAmount contains the gross price amount. The gross price section must contain exactly one such amount element.

Please provide exactly one amount for the gross price

ram:ChargeAmount is missing from the gross price section or appears more than once. The section needs exactly one amount element.

What to do
  1. Find the affected ram:GrossPriceProductTradePrice.
  2. Check that it contains exactly one ram:ChargeAmount.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:GrossPriceProductTradePrice/>
✓ Correct
<ram:GrossPriceProductTradePrice>
  <ram:ChargeAmount/>
</ram:GrossPriceProductTradePrice>
Technical details

In the context of ram:GrossPriceProductTradePrice, the rule checks whether the number of direct ram:ChargeAmount elements equals 1.

Where the rule applies

The rule applies in the gross price section (ram:GrossPriceProductTradePrice) of the invoice line agreement.

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