Hello,
I have a process that does a patch to a table when a button is clicked. it updates two fields.
It worked two days ago. Today it does not. I get an error saying the field is read-only. I find no setting anywhere in Dataverse to show read only or not. we have not changed these fields at all in the table.
Error:
Network error when using Patch function: The specified column is read-only and can't be modified.
I found another environment where this code lives and it works there. No table changes have been made - code is all the same.
Why does it work on one environment and not on the other?
Thanks!
First, Thanks to everyone who Replied. We did use your ideas to troubleshoot.
We think we found the culprit. At least, the change we made seems to have fixed the issue.
When I got in this morning, I heard from the Business Users that this was a problem in Production also. This code has definitely not been updated in several weeks and was working last week.
There is a "setting" in the app, under "upcoming features", named "Explicit Column Selection". This was turned off, so apparently, when we tried to do a patch, all the columns in the row were being updated in some way, including the ones that were "read-Only", but were NOT supposed to be patched.
We turned on the feature and the code worked as intended.
It seems Microsoft updated something last week around this feature that impacted my application. If not, maybe we learned something anyway.
Thanks for all your help!!!!
There could be chances of this field might have configured in field security profile, pls do check.
Hi @brandolph86 ,
Just by the way, can also try to create to create new column to check whether this is really specific column related issue.
Best Regards,
Hen Wang
If the code is all the same but it only works on one environment, my first suspect is security roles; make sure the user has been given a role with read & edit permissions for that table or is System Admin, especially if this is a custom table. Append and Append To roles will also be necessary if one of the fields is a lookup. Security roles can be added to solutions, but a deployment doesn't carry over who was given what role.
Another troubleshooting step would be to have the user try making the same changes manually through a model driven app form if possible. If they can do it there, then it shouldn't be a permissions issue.
It's also worth checking if you have any Business Rules that make a field read-only under certain conditions.
mmbr1606
22
Super User 2025 Season 1
stampcoin
19
Michael E. Gernaey
17
Super User 2025 Season 1