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 / About Excel writing pr...
Power Apps
Unanswered

About Excel writing process with PowerApps

(0) ShareShare
ReportReport
Posted on by

I'm trying to create an asset management inventory app using PowerApps.
In the process of writing one record (Managementnumber, Confirmer, Confirmationdate) in the asset management Excel file using the code below when the write button is clicked (OnSelect), I intended to write it so that it would overwrite the record with the same Managementnumber.
But clicked repeatedly, the records will be added.

 

Refresh(Shisan);If(IsBlank(LookUp(Shisan,Managementnumber=TextInput1.Text)),Patch(Shisan,Defaults(Shisan),{Managementnumber:TextInput1.Text,Confirmer:TextInput1_1.Text,Confirmationdate:TextInput1_2.Text}),Patch(Shisan,LookUp(Shisan,Managementnumber=TextInput1.Text),{Confirmer:TextInput1_1.Text,Confirmationdate:TextInput1_2.Text}))

 

If it is immediately after some other operation (such as after writing another record), it will be overwritten properly. But clicked continuously, it will not work.
I thought it might be necessary to reload the "Shisan" table defined in the asset management Excel file, so I tried later adding Refresh to the beginning of the code, but the situation did not change.

Please let me know if you know how to deal with this.

Categories:
I have the same question (0)
  • WillPage Profile Picture
    2,329 Super User 2026 Season 1 on at

    Try and avoid using Excel as a data source for your app. It's horrible. Maintain your asset management inventory in a SharePoint list and then if it must be in Excel as well then use Power Query in Excel to connect to the SP list and do some transformations there to show the relevant columns etc.

  • CU23041756-0 Profile Picture
    2 on at
    just make sure Managementnumber is treated as a unique key in the Excel table itself—sometimes PowerApps doesn’t detect duplicates correctly if Excel isn't structured like a proper table. Also, double-check the data types in your inputs match what Excel expects
  • CU25041022-0 Profile Picture
    11 on at
    Maybe try using ClearCollect() before LookUp() to force a fresh read of the Excel table? That helped me once with a similar overwrite problem

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard