Skip to content
KSEF-BUS-127 INFERRED Error

Invalid boolean field format

Niepoprawny format pola logicznego

Problem

A boolean field on the invoice has a value other than '1' (Yes) or '2' (No). In FA(3), boolean fields (e.g. P_16, P_17, P_18, P_18A) must have one of these two values when present.

How to Fix

Check boolean fields (e.g. P_16, P_17, P_18, P_18A) — each should have value '1' (Yes) or '2' (No) when present. Values like 'true', 'false', 'tak', 'nie', '0' are rejected by the XSD (TWybor1_2).

Source Reference

Brochure FA(3), Table 29 (XSD TWybor1_2)

Page 55

View source PDF

Source Quote

“Logical fields in KSeF accept value '1' (Yes) or '2' (No).”
Description SHA-256: 611a37a4bdf5…

Justification

FORMAT

Legal Basis Chain

1

Boolean fields P_16–P_23 (XSD type TWybor1_2)

Pola logiczne P_16–P_23 (typ XSD TWybor1_2)

“Fields P_16 to P_23 accept only values "1" (yes) or "2" (no). XSD type TWybor1_2 restricts the value to enumeration {1, 2}. Brochure FA(3), Table 29 lists annotation fields with this type: P_16 (cash method), P_17 (self-billing), P_18 (reverse charge), P_18A (MPP), P_19 (exemption), P_22 (EU), P_23 (related parties).”
Brochure FA(3), Table 29 + XSD TWybor1_2 (Page 56)