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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / UpdateIf blank colums
Power Apps
Answered

UpdateIf blank colums

(0) ShareShare
ReportReport
Posted on by 38

Hello to all the PowerApps community,

 

I'm facing a problem with the UpdateIf function. According to Microsoft Guidelines I'm trying to update a single Record in a data verse Table called Azienda_Anagrafico_listini_righe.

The table initially looks like this:

Screenshot_1.jpg

Now I want to update just only the price Prezzo_netto for the code ABC, and I have added in button the following code:

UpdateIf(Azienda_Anagrafico_listini_righeP, ThisRecord.Codice="ABC",
{
Prezzo_netto: Prezzo_netto*0.1
});
Refresh( Azienda_Anagrafico_listiniP );

 

I expect that only "Prezzo_netto" will be updated for the record ABC.

But after clicking the button I got the following empty columns in the Dataverse Table:

image.png

Prezzo_netto has successfully updated, but Codice and Descrizione have been deleted.

Any Idea about this flaw ?

Thanks to all.

Michele

Categories:
I have the same question (0)
  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi @MicheleGo 

    There shouldn't be any need to reference ThisRecord. What happens when you try this?

    UpdateIf(Azienda_Anagrafico_listini_righeP, 
     Codice="ABC",
     {
     Prezzo_netto: Prezzo_netto*0.1
     }
    );
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    ignore this - deleted my comment - only Update should replace whole records!

  • MicheleGo Profile Picture
    38 on at

    Hi timl thanks for reply, but I got the same result

     

    image.png

  • MicheleGo Profile Picture
    38 on at

    Hi Sancho,

    As suggested by you I have tried with Patch with the following code:

     

    Patch(Azienda_Anagrafico_listini_righeP,LookUp(Azienda_Anagrafico_listini_righeP,Codice="ABC"),
    {
    Prezzo_netto: 10
    }
    );
    Refresh( Azienda_Anagrafico_listiniP );

     

    and also with that I got the same result, it is quite weird.

     

    Michele

  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi @MicheleGo 

    I attempted to recreate this problem but wasn't able to do so. 

    What I would say is that what you're seeing here is unexpected behaviour. 

    Is Azienda_Anagrafico_listini_righe a table that you created yourself?

    Could there be any other Flows or Dataverse plugins that could be modifying the data on an Update?

  • MicheleGo Profile Picture
    38 on at

    Hi timl

    Yes  Azienda_Anagrafico_listini_righe it's a Dataverse table I have created by myself, and there aren't any plugins that could modify the data un an Update event.

    It might be that there is something in the Dataverse Tables that should be set, to avoid putting null values automatically, I really don't know if this is possible.

  • Verified answer
    MicheleGo Profile Picture
    38 on at

    Hello Guys,

    I have found the problem.

    The fact was that the table "Azienda_Anagrafico_listini_righeP" was created as "Elastic table". Creating again the same table as "Standard" magically I was able to update a single column without loosing the values in the other columns.

    I don't know if this it's a Microsoft bug on "Elastic tables" or it might be correct for any mysterious reason.

  • Verified answer
    timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    @MicheleGo Thanks for reporting the cause of this - it's very useful to know.

    As this is a preview feature, it's hard to know what the intended behaviour is. However, I would be inclined to label this as bug, given how it differs from the use of Patch/UpdateIf with other data sources.

  • MicheleGo Profile Picture
    38 on at

    Ok added the Tag "Bug" for all those people who need this information. Have a great day.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard