Skip to content

Error

FX-SCH-A-000665: Tax registration number for the buyer's agent

In short

Error: fails the selected checks.

FX-SCH-A-000665 requires each tax registration block of the buyer's agent to contain exactly one ram:ID element. Add the missing identifier element or remove duplicate identifier elements.

On this page

What it means

For each ram:SpecifiedTaxRegistration under ram:BuyerAgentTradeParty in the header trade agreement, the check counts its direct ram:ID children. There must be one. This test does not check the identifier's contents or type.

Why it matters

Each tax registration block has space for one identifier element. Missing or repeated identifier elements do not follow that structure.

How to fix it

Check each ram:SpecifiedTaxRegistration belonging to the buyer's agent. Give it one ram:ID containing the correct registration number. If ram:ID is repeated within the block, retain the appropriate identifier once. Export the invoice again and recheck it.

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:ID' must occur exactly 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-000665 still fails, and which other rules do.

Updated 6 November 2026