Skip to content

Error

FX-SCH-A-000535: Line VAT details need exactly one tax type element

In short

Error: fails the selected checks.

FX-SCH-A-000535 means a line's VAT details contain no ram:TypeCode element or more than one. Give each ram:ApplicableTradeTax under the line's ram:SpecifiedLineTradeSettlement exactly one ram:TypeCode, using VAT for VAT details, then export and recheck your file.

On this page

What it means

Line VAT information (BG-30) includes the VAT category (BT-151) and, where applicable, the VAT rate (BT-152). This rule counts ram:TypeCode elements inside each ram:ApplicableTradeTax under ram:SpecifiedLineTradeSettlement. The count must be exactly one. It does not check the code's value or whether the tax block itself exists. It applies to the Basic and EN 16931 profiles of Factur-X and ZUGFeRD.

Why it matters

The tax type identifies the tax described by the line's tax details. A missing or repeated type element does not meet the required structure.

How to fix it

Check the exported VAT details for the affected line. In XML, add the missing ram:TypeCode or remove duplicate elements within ram:ApplicableTradeTax, retaining one with the appropriate value, VAT for VAT details. If your software generates the structural error, report this rule id to its supplier. Export and recheck.

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 'ram:TypeCode' must occur exactly 1 times.

Where this rule applies

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

Check your file

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

Updated 6 November 2026