Skip to content
VAT, KSeF and invoicing

KSeF rejected the invoice — how to correct the XML and check the shipment?

October 31, 2026 · spoli2003@gmail.com

dr Artur Oleś — BTLA team

A notification of an XML file rejection is not the same as an error on an invoice accepted by KSeF. Before resending, determine the processing result and the issuance mode. Only this information allows for the selection of the correct fix and document date.

Check the result of a specific operation

Locate the document in the program and link it to the appropriate session or shipment. Save the identifier, message, and time. While the process is still ongoing, the mere absence of the KSeF number on the first screen does not determine a rejection. If the system has accepted the invoice, recreating the document may cause a duplication of the transaction.

Distinguish between three situations: the file was rejected, processing did not complete, or the invoice was accepted. The program may use its own status names. Ask the provider to explain their meaning and how to download the confirmation. Do not replace the operation result with a mere statement from an employee that they pressed the button.

What may require correction?

  • XML inconsistency with the current structure or missing required field.
  • Incorrect date, identifier or value format.
  • Problem with authentication or scope of permissions.
  • Sending a document in the wrong session or taxpayer context.

Not every business inconsistency causes rejection. An invoice for another existing buyer may be accepted. In such a case, it is not enough to correct the XML and resubmit it as a technically flawed file. The rules for correcting an accepted invoice apply.

Online and offline modes must be assessed separately

For an invoice prepared online, a rejection does not provide a KSeF number or confirmation of receipt of the structured document. After correcting, the date of issue and the statutory deadline must also be checked. Do not change the date of service performance just because the integration sent the file later.

If the date in field P_1 is earlier than the date of transmission, the regulations provide for qualification for offline24. For an invoice issued in such a mode, its correct date must be maintained and the deadline for subsequent transmission must be assessed. A transmission error does not automatically mean that a document issued outside the system never existed. Detailed deadlines are described in the guide on special modes.

Error handling example

The employee prepared the document, and validation indicates a lack of the required marking. Before the next attempt, they check whether this is a final rejection and not just a delay in the number. They correct the indicated field, verify the mode and dates, and save the result after sending. If the document has already reached the recipient outside KSeF, they pass this information to the accounting department instead of independently treating the previous version as non-existent.

Agree on who closes the case

There should be a single list of pending and rejected documents in the company. Specify the person responsible for the decision and the escalation deadline before the statutory obligation expires. The accounting office and the sales department must know which version is final. It is worth recording this division in an annex to the agreement with the office.

In the event of a dispute, keep the original communication and the repair history. The mere fact of an error does not determine who bears tax or contractual liability. Recurring rejections are a signal to improve the process and integration tests. Review materials can be found in the KSeF BTLA library.

Information status: 31 October 2026. Examples illustrate the assumptions made and require adjustment to actual documents.

Let's start with your matter

Let's talk
about your business

Briefly describe the situation and leave your contact details. We will choose the right person from the BTLA team for your discussion.

Regarding: KSeF rejected the invoice — how to correct the XML and check the shipment?

Let's talk about your case

Subject: VAT, KSeF and invoicing

Data processing

Let’s talk

Leave your number
Let’s start with a conversation

Leave your phone number and briefly describe the topic. For a longer message, use our contact form.

Data processing
Prefer to call? 32 307 70 37