Specify the tax rate exactly once

Error FX-SCH-A-000329 Factur-X

Element 'ram:RateApplicablePercent' 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:AppliedTradeTax is missing ram:RateApplicablePercent, or the element occurs more than once. It must occur exactly once.

What the rule means

ram:RateApplicablePercent contains the percentage associated with the tax information. Without exactly one such element, the tax rate is not unambiguously represented in the XML.

Please specify the tax rate exactly once

The tax rate is missing from the tax information or appears more than once. You can resolve this by including ram:RateApplicablePercent exactly once.

What to do
  1. Check ram:AppliedTradeTax and make sure ram:RateApplicablePercent occurs exactly once.
  2. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:AppliedTradeTax/>
✓ Correct
<ram:AppliedTradeTax>
  <ram:RateApplicablePercent/>
</ram:AppliedTradeTax>
Technical details

The Schematron test counts the direct ram:RateApplicablePercent elements in ram:AppliedTradeTax and requires exactly one.

Where the rule applies

The rule applies to ram:AppliedTradeTax within a document-level logistics service charge.

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