Logistics service amount

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 the element occurs more than once.

What the rule means

ram:AppliedAmount contains the amount of the specified logistics service. Exactly one element ensures that this amount is stated unambiguously.

Please provide the logistics service amount exactly once

The specified logistics service is missing its amount, or the amount is included more than once. You can resolve this by stating the amount just once.

What to do
  1. Find the relevant ram:SpecifiedLogisticsServiceCharge.
  2. Add exactly one ram:AppliedAmount inside it and remove any duplicates.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedLogisticsServiceCharge/>
✓ Correct
<ram:SpecifiedLogisticsServiceCharge>
  <ram:AppliedAmount>0.00</ram:AppliedAmount>
</ram:SpecifiedLogisticsServiceCharge>
Technical details

The test uses count(ram:AppliedAmount)=1 to check that the current ram:SpecifiedLogisticsServiceCharge contains exactly one ram:AppliedAmount element.

Where the rule applies

The rule applies to ram:SpecifiedLogisticsServiceCharge in the document-level settlement information.

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