ROWFA

KSeF error 440: duplicate invoice

KSeF (Poland's national e-invoicing system) rejects an invoice with error 440 when it already holds one with the same three values. Pick the XML files you are about to send, or a ZIP of them, to find repeats among them first.

Read in your browser. The file is not sent anywhere.

What counts as a duplicate

#ValueFA(3) elementOfficial wording (Polish)
1Seller's NIPPodmiot1/DaneIdentyfikacyjne/NIPNIP sprzedawcy (Podmiot1:NIP)
2Invoice typeFa/RodzajFakturyRodzaj faktury (RodzajFaktury)
3Invoice numberFa/P_2Numer faktury (P_2)

The rules around it

RuleOfficial wording (Polish)
Duplicates are detected across the whole systemKSeF wykrywa duplikaty faktur globalnie, w oparciu o dane przechowywane w systemie.
The error code is 440W przypadku duplikatu zwracany jest kod błędu 440 („Duplikat faktury”).
Uniqueness is kept for 10 full years after the year of issueUnikalność faktury utrzymywana jest w KSeF przez okres 10 pełnych lat, liczonych od końca roku kalendarzowego, w którym faktura została wystawiona.
The criterion always refers to the seller; units issuing for one seller must agree on numberingKryterium unikalności odnosi się zawsze do sprzedawcy (Podmiot1:NIP). W przypadku, gdy w imieniu tego samego podmiotu faktury wystawiają różne jednostki (np. oddziały, jednostki organizacyjne JST, inne uprawnione podmioty), muszą one uzgodnić zasady numeracji, aby uniknąć duplikatów.

Worked example

FileSeller NIPRodzajFakturyP_2By the rule above
a.xml5251000201VATFV/2026/03/0142first of its combination
b.xml5251000201VATFV/2026/03/0142same three values as a.xml: duplicate
c.xml5251000201KORFV/2026/03/0142the type differs, so the combination differs
d.xml6793000422VATFV/2026/03/0142the seller differs, so the combination differs
The checker on this page compares only the files you pick with each other. It cannot see what KSeF already holds.

Have a ZIP of KSeF XML invoices?
Turn it into an Excel workbook and PDFs. Free up to 5 files, nothing uploaded.

Open the converter

Questions

Which fields make an invoice a duplicate in KSeF?

Three together: the seller's NIP (Podmiot1/NIP), the invoice type (RodzajFaktury) and the invoice number (P_2).

Does the buyer matter for error 440?

No. The documentation says the uniqueness criterion always refers to the seller. Two invoices with the same number and type from one seller are duplicates even when the buyers differ.

For how long is an invoice number blocked?

For 10 full years, counted from the end of the calendar year in which the invoice was issued.

Can this page tell me whether KSeF already holds my invoice?

No. It compares only the files you pick with each other. Whether a number is already in KSeF can be seen only in KSeF.

Source: Weryfikacja faktury (KSeF documentation, dated 09.04.2026). Read 2026-11-10.

Related