Amount of the logistics service charge

Error FX-SCH-A-000327 Factur-X

Element 'ram:AppliedAmount' 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:AppliedAmount is missing from ram:SpecifiedLogisticsServiceCharge or occurs more than once. It must occur exactly once.

What the rule means

ram:AppliedAmount specifies the applied amount of the logistics service charge. Without exactly one amount value, the charge is not stated with an unambiguous amount.

Please provide the logistics service charge amount exactly once

The amount for the logistics service charge is missing or appears more than once. A single ram:AppliedAmount provides one amount value.

What to do
  1. Find the relevant ram:SpecifiedLogisticsServiceCharge.
  2. Make sure it contains exactly one ram:AppliedAmount.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedLogisticsServiceCharge/>
✓ Correct
<ram:SpecifiedLogisticsServiceCharge>
  <ram:AppliedAmount>10.00</ram:AppliedAmount>
</ram:SpecifiedLogisticsServiceCharge>
Technical details

The test counts the direct ram:AppliedAmount elements in ram:SpecifiedLogisticsServiceCharge and requires the count to be 1.

Where the rule applies

The rule applies to a specified logistics service charge in the settlement information.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedLogisticsServiceCharge
Test expression (assert/@test)
count(ram:AppliedAmount)=1