web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Null Boolean Field Error
Power Automate
Unanswered

Null Boolean Field Error

(0) ShareShare
ReportReport
Posted on by 674

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.

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @Runner55552 

    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.

     

     

     

  • 55552 Profile Picture
    674 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard