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 / Power Automate does no...
Power Automate
Unanswered

Power Automate does not update value to null value

(0) ShareShare
ReportReport
Posted on by 254

Hello guys, I use an operation "Update a row into a table".update a row.png

For example I have column "Error", "Finding details":

null columns.png

So in these columns once I have information, and once no ( in case when these errors were solved). The problem is if I have information there (for example in column error: SOX) and after user update information to null values (delete this erorr, because it was solved), old information in these columns isn't deleted ( so I still have error SOX in cell). 

 

I was trying to solve it with If() statement: 

if(equals(items('Apply_to_each_row_where_status_==_"Passed"')?['Error'], null), null,items('Apply_to_each_row_where_status_==_"Passed"')?['Error'])

So if value in my column is null, then return null, else return value from this column.

But it doesnt help.

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Since it is a string column check if the value is empty()

    if(empty(items('Apply_to_each_row_where_status_==_"Passed"')?['Error']), items('Apply_to_each_row_where_status_==_"Passed"')?['Error']),'')

     

    Please fix the opening and closing brackets (if I got the expression wrong)

  • Aleksandra1 Profile Picture
    254 on at

    I got a message that this expression is invalid.

  • Aleksandra1 Profile Picture
    254 on at

    I have edited your function: if(empty(items('Apply_to_each_row_where_status_==_"Passed"')?['Error']),'', items('Apply_to_each_row_where_status_==_"Passed"')?['Error']), but it still doesnt work 😞

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    This is what the expression should be. Please update accordingly

     

    if(empty(variables('MyVal')),'Empty','Not Empty')
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Can you put items('Apply_to_each_row_where_status_==_"Passed"')?['Error'] in a Compose action and check what you get? Is that returning a single item or array?

  • Aleksandra1 Profile Picture
    254 on at

    json file.png

    from json format you can see that is input i got null value (it is right) 

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Are you able to use a Parse  JSON action and pick the values for comparison from there?

    I suspect probably the XPath expression is incorrect.

  • Aleksandra1 Profile Picture
    254 on at

    Can you please write me a way, how can I do it?

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    What value does this return everytime in your case? if(equals(items('Apply_to_each_row_where_status_==_"Passed"')?['Error'], null), null,items('Apply_to_each_row_where_status_==_"Passed"')?['Error'])

     

  • Aleksandra1 Profile Picture
    254 on at

    just information which was in cell in excel for example error SOX, this statement doesn't update to null value

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard