Fehlercodes · KSeF · Polen
KSeF NIP validation failed — bad format or wrong identifier field
So lautet die Ablehnung wörtlich: „[KSEF-001] KSEF-001 fires when a Polish tax identification number (NIP) on a KSeF e-invoice is malformed or placed in the wrong identifier element. A NIP must be exactly 10 digits and pass the official weighted check-digit test; the KSeF schema field that carries it (Podmiot1/Podmiot2 → DaneIdentyfikacyjne → NIP) accepts digits only — no PL prefix, no spaces, no dashes. A second, very common variant is putting a domestic NIP in the EU VAT field (NrVatUE) or a generic identifier (NrID) instead of the NIP element, which both fails validation and breaks routing of the invoice to the correct party inside KSeF.“
Three patterns cause almost every KSEF-001. (1) Formatting: the NIP is exported with a country prefix (PL1234567890) or separators (123-456-78-90); the NIP element is digits-only so the prefix and punctuation are rejected. (2) Check digit: a transposed or mistyped digit makes the number fail the weighted checksum (weights 6,5,7,2,3,4,5,6,7 mod 11). (3) Wrong field: a Polish buyer's NIP is written to NrVatUE or NrID, leaving DaneIdentyfikacyjne/NIP empty. KSeF uses the NIP in Podmiot2 to deliver the invoice, so a misplaced number can fail validation or misdeliver.
<Podmiot2>
<DaneIdentyfikacyjne>
<NrVatUE>PL123-456-78-90</NrVatUE>
</DaneIdentyfikacyjne>
</Podmiot2><Podmiot2>
<DaneIdentyfikacyjne>
<NIP>1234567890</NIP>
</DaneIdentyfikacyjne>
</Podmiot2>