1056
Views
6
Comments
Solved
Expected Boolean but received String
Question

Hi,

I have received an error: 

Column 'IsDisplayed' has an invalid type. Expected a 'Boolean' but received a 'String'.

On my excel sheet column IsDisplayed, the data is True or False.

What should i do to solve the error?? Put 1 or 0?

2025-01-09 14-56-57
IQ78
Solution

I tried in my cloud environment:

if the value is 0 / 1 it will be false. If the value true/false, it works exactly. Note do not put id column.

this is the output aggregate:

here is the entity:

and here is the the bootstrap action created:

regards,

bb


2025-01-09 14-56-57
IQ78

In the entity level, Outsystems uses 1 and 0 for boolean value. Just try it!

regards,

bb


UserImage.jpg
Jace Jace

Barong Bali wrote:

In the entity level, Outsystems uses 1 and 0 for boolean value. Just try it!

regards,

bb


I tried before but still same error. I import it from excel sheet. 


2025-01-09 14-56-57
IQ78
Solution

I tried in my cloud environment:

if the value is 0 / 1 it will be false. If the value true/false, it works exactly. Note do not put id column.

this is the output aggregate:

here is the entity:

and here is the the bootstrap action created:

regards,

bb


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Jace,

It seems you have a column in the Excel that is not a boolean (i.e. TRUE or FALSE), so the Platform cannot parse it.

@Barong: yes, in the database booleans are stored as 0 and 1, but you should never have to deal with that unless you are writing SQL. It definitely doesn't have impact with the Excel import.

2026-01-26 10-25-31
Lennart Kraak
Champion

Probably what Kilian stated. Also take into account that when you're using a localized version of Excel, the values for TRUE and FALSE can also differ. The Dutch version for example uses 'WAAR' and 'ONWAAR'.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

In addition to the above remark by Lennart, using the string value equivalents of TRUE and FALSE (or WAAR and ONWAAR etc.) will not work. It must be an actual boolean in the Excel file.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.