KSEF-21180
Error Guide
🇵🇱 KSEF-21180: KSeF session status does not allow this operation in Poland
ErrorMandatoryManual Fix
The KSeF 2.0 API rejected your request because the session referenced by referenceNumber is in a state that does not permit the requested action. Typical example: attempting POST /sessions/online/{ref}/invoices while the session status is 415 (closing) or an already-terminal status such as 445 (no valid invoices). The invoice itself was never processed.
Quick Facts
Severity
Error (rejection)
Ruleset
KSeF 2.0
Fix Confidence
0%
Mandate
B2B Mandatory
Fix Type
Manual
Why This Matters in Poland
Poland requires e-invoicing using KSeF XML format. Invoices with this error will be rejected. They cannot be processed for Poland compliance.
Invoice Navigator covers 134 KSeF FA(3) rules for Poland.
How to Fix KSEF-21180
- 1
- 2
- 3
- 4
- 5
Poland E-Invoicing Requirements
Phase
Status
Scope
KSeF voluntary
Live (Jan 2022)
All VAT payers (opt-in)
B2B mandatory — Phase 1
Live (Feb 1, 2026)
Large taxpayers (>200M PLN turnover)
B2B mandatory — Phase 2
Live (Apr 1, 2026)
All remaining VAT-registered entities (SMEs, sole proprietors, VAT-exempt businesses)
B2G
Live (Feb 1, 2026)
Included in general KSeF mandate
Financial penalties
Jan 1, 2027
Up to 100% of VAT amount on non-compliant invoices
Common Causes
- •Session left open past its idle timeout, then reused
- •Race condition: close request and invoice submit sent in parallel
- •Retry logic that keeps re-sending against a session already in status 445
- •Load balancer replaying a stale request after failover
Fix KSEF-21180 automatically
Upload your invoice and let Invoice Navigator auto-remediate this error.