ksefujto

Errors and validation

FA(3) XML: what changed from FA(2) in KSeF

7 min readWritten by AI

Since 1 February 2026, KSeF (Krajowy System e-Faktur, Poland's national e-invoicing system) 2.0 accepts only FA(3), with no backward compatibility mode. To migrate from FA(2) you change the namespace, the KodFormularza attributes and the WariantFormularza value, and add the JST and GV fields to every Podmiot2.

Legal position as of 18 October 2026.

FA(3) Information Sheet — Ministry of Finance

FA(2) ended on 1 February 2026

FA(2) applied from 1 September 2023, first voluntarily, then in the KSeF pilot, and stopped working at midnight on 31 January 2026. From 1 February, FA(3) is the only binding template for a structured e-invoice. There is no legacy mode and no transition period for the format.

Two dates are easy to confuse:

  • 1 February 2026: KSeF became mandatory for taxpayers with 2024 turnover above PLN 200 million. From that day FA(3) is the only accepted format for all KSeF invoices.
  • 1 April 2026: KSeF became mandatory for all remaining taxpayers, both VAT-registered and VAT-exempt.
MF FAQ — KSeF 2.0, question 10

So the format has applied since February, regardless of when KSeF became mandatory for you.

Namespace

The namespace is the xmlns attribute on the <Faktura> element. FA(3) changed its URI, and KSeF 2.0 rejects the document at this level before checking anything else. This one change causes most validation errors for developers migrating from FA(2).

<!-- ❌ FA(2) — invalid since 1 February 2026 -->
<Faktura xmlns="http://crd.gov.pl/wzor/2023/06/29/12648/">
  ...
</Faktura>
<!-- ✅ FA(3) — required from 1 February 2026 -->
<Faktura xmlns="http://crd.gov.pl/wzor/2025/06/25/13775/">
  ...
</Faktura>

It is easy to miss when the namespace is hardcoded in a generator template or comes from an example copied long ago. The date in the schema URL (https://crd.gov.pl/wzor/2025/06/25/13775/) is its publication date, not its effective date.

Both attributes of <KodFormularza> change, and <WariantFormularza> goes from 2 to 3:

<!-- ❌ FA(2) -->
<KodFormularza kodSystemowy="FA (2)" wersjaSchemy="...">FA</KodFormularza>
<WariantFormularza>2</WariantFormularza>
<!-- ✅ FA(3) -->
<KodFormularza kodSystemowy="FA (3)" wersjaSchemy="1-0E">FA</KodFormularza>
<WariantFormularza>3</WariantFormularza>

kodSystemowy="FA (3)" has a space before the bracket, and typos here are among the most common. A complete valid header:

<Naglowek>
  <KodFormularza kodSystemowy="FA (3)" wersjaSchemy="1-0E">
    FA
  </KodFormularza>
  <WariantFormularza>3</WariantFormularza>
  <DataWytworzeniaFa>2026-03-28T10:00:00Z</DataWytworzeniaFa>
</Naglowek>

New mandatory JST and GV fields in Podmiot2

FA(3) adds two mandatory fields to Podmiot2. Without them the document fails XSD validation, whatever your company's profile. The section looks the same as in FA(2), so this is the easiest change to miss.

FieldMeaningDefaultWhen "1"
JSTLocal government unit flag2 = not applicableInvoice concerns a subordinate JST unit
GVVAT group member flag2 = not applicableInvoice concerns a VAT group member

For the vast majority of invoices, set both to 2.

<!-- ❌ FA(2) — JST and GV missing -->
<Podmiot2>
  <DaneIdentyfikacyjne>
    <NIP>9876543210</NIP>
    <Nazwa>Nabywca Sp. z o.o.</Nazwa>
  </DaneIdentyfikacyjne>
  <Adres>
    <KodKraju>PL</KodKraju>
    <AdresL1>ul. Przykładowa 1, 00-001 Warszawa</AdresL1>
  </Adres>
</Podmiot2>
<!-- ✅ FA(3) — JST and GV present -->
<Podmiot2>
  <DaneIdentyfikacyjne>
    <NIP>9876543210</NIP>
    <Nazwa>Nabywca Sp. z o.o.</Nazwa>
  </DaneIdentyfikacyjne>
  <Adres>
    <KodKraju>PL</KodKraju>
    <AdresL1>ul. Przykładowa 1, 00-001 Warszawa</AdresL1>
  </Adres>
  <JST>2</JST>
  <GV>2</GV>
</Podmiot2>

When JST = 1, a Podmiot3 entry with Rola = 8 is required. When GV = 1, an entry with Rola = 10. Details are in the FA(3) information sheet. If the validator reports these fields missing, see missing JST and GV in Podmiot2.

New elements in FA(3)

Rola = 11 in Podmiot3 (employee). For invoices covering employee expenses, where an employee buys on behalf of the employer and has no NIP of their own as a party to the transaction. The DaneIdentyfikacyjne/NIP field then does not exist: you set BrakID = 1 and give the employee's name in Nazwa.

<Zalacznik>. An optional structured attachment at the top level of the document, for invoices with extensive data on units of measure, quantities or net unit prices.

Using Zalacznik requires notifying the tax office in advance through e-Urząd Skarbowy. The attachment may only carry tax data. Using it for price lists, warranties or contracts means losing the right to issue invoices with an attachment.

Corrections to FA(2) invoices

A correction invoice for an invoice issued in FA(2) before 1 February 2026 must be in FA(3). There is no "FA(2) correction in FA(2) format". The same goes for final invoices that settle FA(2) advance invoices (MF FA(3) information brochure, or broszura, introduction on the binding invoice template).

An FA(2) invoice sent to KSeF 1.0 has a KSeF number, so the correction sets NrKSeF = 1 in DaneFaKorygowanej and gives that number in NrKSeFFaKorygowanej. The FA(3) schema accepts numbers in the KSeF 1.0 format there too. Set NrKSeFN = 1 only when the original was never assigned a KSeF number, for example because it was issued on paper or as a PDF. MF does not address the KSeF 1.0 case directly. The rule follows from the descriptions of the NrKSeF and NrKSeFN fields in the FA(3) brochure and from art. 106j ust. 2 pkt 2a of the VAT Act, which requires the original's KSeF number whenever one was assigned. Other invoices without a KSeF number are covered in our article on correcting an invoice without a KSeF number.

Art. 106j ust. 2 pkt 2a of the VAT Act (consolidated text, Dz.U. 2026 poz. 1263)

Migration checklist

Mandatory:

  1. Change the namespace from http://crd.gov.pl/wzor/2023/06/29/12648/ to http://crd.gov.pl/wzor/2025/06/25/13775/.
  2. Set kodSystemowy="FA (3)" and wersjaSchemy="1-0E" in KodFormularza.
  3. Set <WariantFormularza>3</WariantFormularza>.
  4. Add <JST>2</JST> and <GV>2</GV> to every Podmiot2 (2 means "not applicable").

Depending on your case:

  • corrections to FA(2) invoices from KSeF 1.0: NrKSeF = 1 and the KSeF 1.0 number in NrKSeFFaKorygowanej,
  • employee invoices: Rola = 11 in Podmiot3 with BrakID = 1,
  • complex quantity-heavy invoices: Zalacznik, after notifying e-US.

If you are building from scratch, skip FA(2): old templates found online and code from the KSeF 1.0 pilot are out of date. Download the XSD from https://crd.gov.pl/wzor/2025/06/25/13775/, generate classes or types from it (JAXB, xsd.exe, xsd-to-ts) and implement against the information sheet. There is no newer schema version as of publication.

Test environment

The KSeF 2.0 test environment is at https://ap-test.ksef.mf.gov.pl/web/. Invoices with dummy data have no legal effect there, and, unlike DEMO and production, it still accepts the older FA(2) as well as FA(3). An FA(2) file that passes in TEST will be rejected in production. The KSeF 1.0 application at ksef.mf.gov.pl/web was switched off on 1 February 2026. The production KSeF 2.0 Aplikacja Podatnika runs at ap.ksef.mf.gov.pl.

Aplikacja Podatnika KSeF 2.0 user manual, p. 13 CIRFMF: KSeF environments

Next step

You can check your XML file on ksefuj.to before submitting; the validator points to the exact element causing each error, and the file never leaves your browser. If you still hit errors after migrating, see the most common FA(3) validation errors for ready-to-copy fixes.

FA(3) XSD Schema — crd.gov.pl

Was this article helpful?

Don’t miss KSeF changes

We’ll send a short email when KSeF rules or deadlines change. We only write then, so you won’t hear from us often.

You can unsubscribe at any time. Powered by Buttondown

  • ErrorsGuide12 min read

    FA(3) XSD schema and a sample XML invoice

    The FA(3) KSeF XML schema is schemat.xsd plus three shared MF schemas. See how Faktura is built, the field types and a sample XML that passes validation.

  • Errors12 min read

    KSeF error 450: rejected invoice or bad token?

    On an invoice, 450 means semantic verification failed: KSeF assigns no number, so fix the file and resend it. At login, 450 means an invalid token.

  • ErrorsGuide9 min read

    Validate FA(3) XML before you send it to KSeF

    KSeF checks a file only when you send it. Before that, validate the XML against the FA(3) schema with xmllint or our validator; KSeF's verdict comes on TEST.

More on this topic: Errors and validation