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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard