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 / Network Error: The spe...
Power Apps
Unanswered

Network Error: The specified column is read only When trying to patch collection to Sharepoint List

(0) ShareShare
ReportReport
Posted on by 20

Hi all,

 

I am getting a "specified column is read only" network error when trying to patch a collection to a sharepoint list in the following scenario.

 

When the start screen first becomes visible the app collects a complete copy of a sharepoint list into a collection.  I use the standard code in the OnVisible property of the start screen:  ClearCollect(colGridData,'SP List').  This works fine.

 

I have a gallery whose items are pulled from the collection.  The user can edit a few columns from the collection (all text columns, none are system generated read only, and none are required to be populated).  Those changes are then patched to the collection.  This also works fine - all changes are properly reflected in the gallery after this patch. 

 

When the user is done making changes, and the collection reflects those changes, I want to update the sharepoint list by patching the whole collection back to the list using this code in the OnSelect property of a button:  Patch('SP List', colGridData).  This is when it throws the network error about read only columns. 

 

There are several articles and youtube vids that show this as possible, since the schema of the whole collection is identical to the sharepoint list.  Oddly enough, in my troublehooting tests, sometimes it will successfully patch the collection to the list, but only the first time I do it.  Any further attempts to patch throws the error.   In other tests after closing and reopening the app, it won't even work the first time despite making the same test edits.

 

I don't want to have to manually code all the columns I'd like to patch (too many), so I thought I'd ask if anyone has any thoughts on what's causing this?

 

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @aflowers 

     

    Try to be specific with your patch. Your current Collection right now contains ID and other non-editable columns like Created, Modified. That's why it's prompting.

     

    Also when patching multiple records, please refer to this article on how you can do it. Use ShowColumns as specified on the end part of this blog.

    https://www.matthewdevaney.com/patch-multiple-records-in-power-apps-10x-faster/

  • aflowers Profile Picture
    20 on at

    Hi @cha_cha,

     

    Thanks for pointing me in the right direction!  I solved this by adding a collection to temporarily hold the changed records with only the editable columns of interest and patched that whole collection to my list on a button press.  Essentially equivalent to using ShowColumns.   

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