Element 'ram:ChargeIndicator' must occur exactly 1 times.
ram:ChargeIndicator does not occur exactly once in this ram:AppliedTradeAllowanceCharge. The element must be present once; multiple occurrences are also not allowed.
ram:ChargeIndicator indicates whether the amount is an allowance or a charge. For this charge, the indicator must be stated once and unambiguously.
The charge on the gross price is missing its indicator, or the indicator appears more than once. One ram:ChargeIndicator makes the entry unambiguous.
- Locate the affected
ram:AppliedTradeAllowanceChargeunderram:GrossPriceProductTradePrice. - Make sure it contains exactly one
ram:ChargeIndicator. - Generate the invoice again and validate it again.
<ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:AppliedTradeAllowanceCharge>
<ram:AppliedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> </ram:AppliedTradeAllowanceCharge>
Technical details
The rule counts the direct ram:ChargeIndicator elements of the selected ram:AppliedTradeAllowanceCharge and requires exactly one occurrence.
The rule applies to a ram:AppliedTradeAllowanceCharge within an invoice line’s gross price that is marked as a charge.
rule/@context)assert/@test)