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 / Excel table update wit...
Power Apps
Answered

Excel table update with patch function

(0) ShareShare
ReportReport
Posted on by 266
 

Hi,
I would like to update my table by Patch function, so if someone clicks on the item, it should be an update with a click date transferred to Excel.

I have the following issue (you can see it on a screen). It is written: The data source is either Read-Only or has no primary key.

Any ideas on how to solve it? Thank you for your time!

pr1.png
PR2.png
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    Your criteria at "Bridlington" is a Column Name not a Text inside the column. So use:

    Patch( Table1, First( Filter(Table1, Bridlington = "Clean Low Level Probe" ) ), { ‘Last Check’: Now() } )

     

    Or
    Patch( Table1, First( Filter(Table1, ID = 1 ) ), { 'Last Check': Now() } )

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • pal95 Profile Picture
    266 on at

    It does not make any change, still the same error appears

  • eka24 Profile Picture
    20,923 on at

    If you have calculated Columns or the SubTotal as you have shown in your table, remove them.

    Also does your excel table have a PowerApps_id column?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • pal95 Profile Picture
    266 on at

    No one of them helps. I literally copied an example from https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch#examples now and it still shows me the same primary key or read-only error on an IceCream table.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @pal95 :

    Could you tell me:

    Using excel as a data source has the following restrictions:

    1\An Excel file may be locked in OneDrive for an update or delete up to 12 minutes(OneDrive) since the last use of the connector.

    2\You should not have the Excel workbook open in OneDrive when you are trying to update it, or you will receive the error “The requested resource is locked.

    3\You can only edit the formatted table that in the Excel file. Format the Excel data as a table

    4\If your Excel data includes a calculated column, you can't use it to build an app, and you can’t add that data to an existing app.

    5\The maximum size of an Excel file that is supported by the Excel Online (OneDrive) connector is 5 MB.

    Best Regards,

    Bof

     

  • pal95 Profile Picture
    266 on at

    Thank you, The solution was just to use OneDrive instead of Excel

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @pal95 :

    Has your problem been solved?Do you still have any questions?

    If the problem has been solved, I suggest you mark your solution as a solution, so that more people can see it.

    Best Regards,

    Bof

  • ndujilo Profile Picture
    2 on at

    hello, can you please explain? 

    i am actually stuck with this

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 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard