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 Automate / network error when usi...
Power Automate
Unanswered

network error when using patch function the specified column is read-only and can't be modified

(0) ShareShare
ReportReport
Posted on by

I created a Simple sharepoint list named "Test" and it consist of 4 columns, Title, Requestor (Person type), Approval Status (Choice), Description (Multi line text) and i added some of the records.

Baldeepsingh_0-1708584878488.png

 

Now i created a Power app and added a Gallery control that display the records from the SharePoint list and then added a Checkbox control to the Gallery for each record. For the Checkbox control I defined some of the properties:

OnCheckCollect(varstatus,ThisItem)

OnUncheckRemove(varstatus,ThisItem)

Default: ThisItem in varstatus

 

Then i added a Combobox control and for the Datasource property i set it to
Choices('Test List'.'Approval Status')

 

I also added a Button control and for the button control OnSelect property i set it to:

UpdateIf(varstatus,true,{'Approval Status':{Value:ComboBox1.Selected.Value}});
Patch('Test List',varstatus);
Clear(varstatus)

 

Now when i am playing the app and selecting two records from the gallery and selecting a Approval status from Combobox control and pressing the Button i am getting the error.

 

Baldeepsingh_1-1708585167057.png

 

What am i doing wrong and why it shows me that Network error when using Patch function: the specified column is read-only and can't be modified
 
@power
Categories:
I have the same question (0)
  • Matt555 Profile Picture
    8 on at

    When adding entering the SharePoint list into items field for the the gallery, try doing it like the below:

     

    ShowColumns('Test List',"ID","Test Title","Requestor","Approval Status","Description")

  • Baldeepsingh Profile Picture
    on at

    Baldeepsingh_0-1708592711990.png

     

    I am the Owner of this list and still i am unable to update the item using UpdateIf and Patch function.

    However if i am just using this formula on the Button OnSelect property:
    UpdateIf(
    varstatus,
    true,
    {ApprovalStatus:ComboBox1.Selected}
    )

     

    and then i am adding a new gallery and the Datasource of the gallery is connected to the Collection. I can see that in the second gallery the Status value is getting updated to the selected status but the second part of the function which is 
    Patch ( 'Test List', varstatus) //where varstatus is a collection 

    is not getting executed.

     

    Baldeepsingh_1-1708592961168.png

     

    I also tried your way where i am restricting the SharePoint list items using ShowColumn function but it is giving me a new error which is "The requested operation is invalid"

  • Matt555 Profile Picture
    8 on at

    I've found that sometimes some of the embedded SharePoint columns like, Created By, can cause the error you mention. Try using ShoColumns to use only the columns you need from the SharePoint list plus the ID column, which is needed to update the record.

    Matt555_0-1708594159857.png

     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard