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 / Error using patch func...
Power Apps
Unanswered

Error using patch function - read only

(0) ShareShare
ReportReport
Posted on by 81

Hi,

 

I have a custom form on SharePoint where one of the fields is a lookup columns (Utility Type: Region) . When I try to edit one of the other columns such as Choice 1, 2 or 3, it is coming up with the below error. When the column Utility Type: Region has data in it, the error does not appear but when it is left blank it will not let me save any changes made to other columns on the form. Does anyone know how I can get round this issue? Any help would be really appreciated.

 

lucystevens_0-1710864805433.png

 

 

 

lucystevens_2-1710864404400.png

 

Thanks,

Lucy

 

 

 

Categories:
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @lucystevens 

     

    did u check if at least Contribute permissions are set for the user?

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • lucystevens Profile Picture
    81 on at

    hey @mmbr1606 

     

    Yes I have the correct permissions.

     

    Thanks,

    Lucy

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    can it be the case, that the column is a requiered column?

    it could also be useful to set a default value (if the business process allows it)

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • lucystevens Profile Picture
    81 on at

    @mmbr1606 

     

    Thank you for your reply. As it is a lookup column it does not have the option to set a default value. I have also checked and it is not a required column

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    thanks @lucystevens 

     

    lookup column can be pain when it comes to powerapps. is this needed to exist in sharepoint or could you also move it to powerapps?

  • lucystevens Profile Picture
    81 on at

    No unfortunately I need to have it in the sharepoint list. I have seen that it may be possible to save the form when these read only fields are blank without causing an error by using the patch function and excluding the read only fields. Do you know the formula that would need to be used to update an existing item in the sharepoint list using patch?

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    I once had the Problem patchint a blank person or group field. Do you have blank ones when patching?

  • lucystevens Profile Picture
    81 on at

    Yes there might be a blank field when patching but if the read only ones are blank I can exclude them from the patch function by using the isblank function

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    Do you maybe try to patch columns that are created by sharepoint? Such as created or created by or modified by etc? If thats the case you can not do this in any way because they will be modified by sharepoint itself

     

    Can uplease copy paste ur patchcode here

     

    Thanks

  • lucystevens Profile Picture
    81 on at

    @mmbr1606 

     

    I was thinking of using something like this but wasn't sure of the formula needed to update an existing sharepoint item

     

    lucystevens_0-1710926215005.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard