ram:ChargeIndicator must be present

Error FX-SCH-A-000530 Factur-X

Element 'ram:ChargeIndicator' 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

The ram:ChargeIndicator element is missing from ram:AppliedTradeAllowanceCharge or occurs more than once. Exactly one such element is required.

What the rule means

ram:ChargeIndicator indicates whether the entry is an allowance or a charge. The rule requires this indicator exactly once.

Please add `ram:ChargeIndicator` to the allowance

The allowance on the gross price is missing the indicator for allowance or charge, or the indicator appears more than once. The invoice can be completed with exactly one ram:ChargeIndicator.

What to do
  1. Open the relevant ram:AppliedTradeAllowanceCharge.
  2. Make sure it contains exactly one ram:ChargeIndicator.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:AppliedTradeAllowanceCharge/>
✓ Correct
<ram:AppliedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
</ram:AppliedTradeAllowanceCharge>
Technical details

Within the ram:AppliedTradeAllowanceCharge selected as an allowance, the check is count(ram:ChargeIndicator)=1.

Where the rule applies

The rule applies within an ram:AppliedTradeAllowanceCharge marked as an allowance on an invoice line’s gross price.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge[ram:ChargeIndicator/ udt:Indicator="false"]
Test expression (assert/@test)
count(ram:ChargeIndicator)=1