Showing results for 
Search instead for 
Did you mean: 
Helper IV
Helper IV

Null Boolean Field Error

My flow reads tables from an Excel file, including several bit or boolean fields, populated with TRUE, FALSE, and sometimes with the word NULL. The column type in Excel is general. The flow reads in the data using the Excel list rows action, then pushes each field into a corresponding column in SQL database tables. When it encounters a NULL coming in from Excel in a boolean field it produces an error stating that SQL expects type boolean, but "NULL" is not valid. I think the problem is that the word NULL is being interpreted as a string by Excel and Power Automate. As a workaround, I check the bit fields (and there are many) for the word NULL using the equals function, and if 'NULL' is found, then return NULL (with no quotes). This NULL with no quotes happily makes it to SQL.

Has anyone encountered this, and found a way to avoid the problem either in Excel or in SQL?  This workaround is ok, but labor intensive, as every bit field must be checked individually with an If statement.

Dual Super User II
Dual Super User II


I believe there is no alternative approach to the one you have already provided each field needs to be checked with an if statement; This is unfortunately the best approach even if it is lengthy.




If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here
Helper IV
Helper IV

Thanks. I have continued to use the workaround I noted in my post, using if statements to look for 'NULL' and then returning NULL without the quotes for entry into our SQL database.

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,239)