errorPOLksef

BR-PL-02:Invalid KSeF invoice type

Polish KSeF invoices must use valid invoice type codes.

Severity
Fatal
Rule set
ksef
Country
POL
Fix type
BLOCKED

Engine Classification

Financial or legal field · Modification blocked by policy

Reason: KSeF (Polish National e-Invoice System) only accepts specific invoice type codes. The invoice type must be changed in your source system to a KSeF-compatible code before submission.

What is BR-PL-02?

BR-PL-02 is a fatal validation rule defined in the ksef specification (POL national rules). It validates the KodFormularza element under Faktura > Naglowek in the UBL invoice XML.

When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.

Target path: XPath: /Faktura/Naglowek/KodFormularza

This error requires manual correction — financial fields are protected by policy.

Why This Error Matters

KSeF validates invoice type for proper processing and archival.

BR-PL-02 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.

Validator Behavior

  • ·Causes invoice rejection
  • ·Error returned: BR-PL-02
  • ·Specification: ksef

How to Fix It

1.

Check type

FA for standard invoice, KOR for correction

2.

Set correctly

In KodFormularza header

3.

Match content

Correction must reference original

XML Example

Generic example based on the rule's target XPath. Your actual XML structure may differ.

Before
<!-- Triggers validation error -->
<KodFormularza></KodFormularza>
After
<!-- Corrected -->
<KodFormularza>VALID_VALUE</KodFormularza>

Technical Reference

XPathXPath: /Faktura/Naglowek/KodFormularza
Specksef

Code Example

<Naglowek>
  <KodFormularza kodSystemowy="FA (2)">FA</KodFormularza>
</Naglowek>

Common Causes

  • ·Wrong type code
  • ·Using old version
  • ·Type mismatch with content

Seeing this in production? The API handles BR-PL-02 automatically. See the fix response →

Commonly Seen In

Polish KSeF systems

Frequently Asked Questions

Polish KSeF invoices must use valid invoice type codes.

Use correct KSeF invoice type code. You can also use Invoice Navigator's automatic Fixer tool to correct this instantly.

Yes, BR-PL-02 is a critical error that will cause invoice rejection. It must be fixed before submission to ensure your invoice is accepted by the recipient's system.

Many instances of BR-PL-02 can be automatically corrected using Invoice Navigator's Fixer tool. Upload your invoice and the tool will identify and fix common issues, including invalid ksef invoice type.

BR-PL-02 is commonly seen in exports from Polish KSeF systems. These software packages sometimes generate invoices that need adjustment to meet full compliance standards.

Related Errors

Last updated: 18 January 2026

Share this guide:

Handle BR-PL-02 Automatically in Your Pipeline

The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.