Loading

Gift Entry grid save fails with checkbox field "not a boolean" error

Дата публикации: Aug 11, 2026
Описание

When saving a row in a custom Gift Entry grid template, you may see an error similar to:
"Value for [CheckboxFieldName] is not a boolean, Value: 0, Runtime class: java.lang.String"
This happens when a custom checkbox column on the grid template has no explicit default value (or a default value not stored as a proper boolean). In that state, the grid initializes the field using the string "0" rather than the boolean false, and the backend rejects that string value when the row is saved without the checkbox being manually toggled.
A telltale sign: manually checking then unchecking the affected checkbox before saving works around the error, because it forces the grid to store a real boolean value.

Решение
  1. Go to the Gift Entry Grid Template setup for the affected template.
  2. For each custom checkbox column, explicitly set the default value to unchecked/false rather than leaving it blank or set to "0".
  3. Re-test gift entry using the corrected template.

This does not affect records already created through data import: standard checkbox fields accept "1"/"0" or "true"/"false" values during import (Data Loader, Bulk API, etc.), and Salesforce converts these to a real boolean at insert time. That is a separate code path from the grid template default-value issue described here, so no transformation of import data is needed.

Номер статьи базы знаний

005390909

 
Загрузка
Salesforce Help | Article