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 / Patch to SharePoint, N...
Power Apps
Answered

Patch to SharePoint, NO From, sporadic: Network error when using patch function: conflicts exist with changes on the server, please reload

(0) ShareShare
ReportReport
Posted on by 33

Hi all,

 

I am updating an existing record in a SharePoint list using following code:

 

Patch(SP_LIST, {ID: 4711, Status:"newStatusValue"})

 

4711 is the ID of an existing record.

Most of the time this is working as expected, but sometimes the user gets the above error:

 

Network error when using patch function: conflicts exist with changes on the server, please reload

 

 

I am not able to reproduce this issue, trying to modify the record in parallel using multiple instances of the app or modifying the record directly within the SharePoint list. 

When I track the (successful) patch-action using the power apps monitor, I see this simple post:

 

https://germany-001.azure-apihub.net/apim/sharepointonline/some_ids_pointing_to_sharepoint/tables/LIST_ID/items/4711"

"body": {
 "Status": "newStatusValue"
 }

 


So I am wondering - how can there be conflicts at all? 

 

Any ideas what I am doing wrong and what is going on behind the scenes?

 

regards

 

florian

Categories:
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @DaFloDo ,
    Please try using below formula to update Status column if the column type is of single line of text  - 

    Patch(SP_LIST, LookUp(SP_LIST, ID = 4711), {Status:"newStatusValue"})

    If the column type is choice, you can try using below - 

    Patch(SP_LIST, LookUp(SP_LIST, ID = 4711), {Status:{Value: "newStatusValue"}})

     

  • DaFloDo Profile Picture
    33 on at

    thank you for your suggestion,

    I know this lookup-pattern from the docs, and will see if that will solve this sporadically occurring issue.


    But I still wonder, what the technical reason for this error is, since no version information or timestamps or other information seems to be sent in the patch request at all. 

  • DaFloDo Profile Picture
    33 on at

    so I guess that internally power apps is tracking the version of the item I want to patch and passes this version info automatically as if-match header info, even if I use the minimalistic patch-one-value-by-item-id.
    The lookup-solution/workaround does work, however I wished there would be a patch-whatever-the-server-version-is variant, without the need to reload the whole item before patching.  

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @DaFloDo ,
    Before patching you can check if use has changed Status value by using If condition - 

    If(LookUp(SP_LIST, ID = 4711).Status <> DataCardValue.Text, <Patch code>)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard