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

Excel table update with patch function

(0) ShareShare
ReportReport
Posted on by 264
 

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!

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
    264 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
    264 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
    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
    264 on at

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

  • v-bofeng-msft Profile Picture
    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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard