Skip to content

Error

FX-SCH-A-000387: A line may have at most one VAT amount in the invoice currency

In short

Error: fails the selected checks.

FX-SCH-A-000387 means a line totals block contains more than one ram:TaxTotalAmount whose currencyID matches the invoice currency (BT-5). Keep at most one matching element in that block, then export and recheck the file.

On this page

What it means

In the Extended profiles of Factur-X and ZUGFeRD, this rule checks each ram:SpecifiedTradeSettlementLineMonetarySummation. It counts ram:TaxTotalAmount elements whose currencyID equals ram:InvoiceCurrencyCode in the header settlement. Zero or one matching element passes this rule; the rule does not count amounts in other currencies.

Why it matters

This keeps the line's VAT total in the invoice currency in a single element rather than repeating it.

How to fix it

Check the VAT total in the affected line's totals block. Remove duplicate ram:TaxTotalAmount elements in the invoice currency, retaining the correct total if it belongs there. This rule does not require you to add a missing amount. If your invoicing software creates the duplicates, ask its supplier to correct the export. Export and recheck the file.

Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice

Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta

The rule as published

Element variant 'ram:TaxTotalAmount[@currencyID=/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode]' may occur at maximum 1 times.

Where this rule applies

Rule set Version
Factur-X 1.09 EXTENDED 1.0.9-2
ZUGFeRD 2.5 EXTENDED 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether FX-SCH-A-000387 still fails, and which other rules do.

Updated 6 November 2026