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 / Replace All Empty Valu...
Power Automate
Unanswered

Replace All Empty Values with Null Values

(0) ShareShare
ReportReport
Posted on by 8

I'm importing data from Excel into SQL Server through Power Automate. The excel table has many properties such as amount or date that have congruent columns in the SQL Server table. However, any values that are empty in Excel are replaced with an empty string ('') instead of a NULL value. The prior can't be passed into SQL Server even if "Allow Nulls" is checked because they aren't null. How would I go about checking every property in the Excel sheet if it's empty and set it to null if so without creating a condition for each property?

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @Zap1798 ,

     

    Are you open to using expressions?  Still need to have one for each value but less clumsy  than conditions.

     

    Screenshot_20210907-231320_Chrome.jpg

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • Zap1798 Profile Picture
    8 on at

    Thanks for the info! You set me on the right path to find the answer! Using a combination of the if function and the empty function to check if the value is empty then set it to null if needed worked out perfectly. Thanks!

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