Element 'ram:ChargeIndicator' must occur exactly 1 times.
This ram:SpecifiedTradeAllowanceCharge does not contain ram:ChargeIndicator exactly once. The indicator is missing or appears more than once.
ram:ChargeIndicator distinguishes whether the amount is an allowance or a charge. For the allowance checked here, the element must occur exactly once.
The allowance does not contain ram:ChargeIndicator exactly once. You can resolve this by specifying the indicator a single time.
- Check
ram:SpecifiedTradeAllowanceChargeand make sureram:ChargeIndicatoroccurs exactly once. - Confirm that the indicator for this allowance is
false. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The Schematron test counts the direct ram:ChargeIndicator elements in the ram:SpecifiedTradeAllowanceCharge selected by the context and requires exactly one.
The rule applies to ram:SpecifiedTradeAllowanceCharge at document level when its ram:ChargeIndicator/udt:Indicator has the value false, indicating an allowance.
rule/@context)assert/@test)