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 / Network error when usi...
Power Apps
Unanswered

Network error when using Patch function: Editing Submissions

(0) ShareShare
ReportReport
Posted on by

Hello,

I am receiving the following error message when I resubmit forms...

"Network error when using Patch function: An error occurred on the server"

 

The issue appears to be the SubmitForm action but it was fine when I submitted a new entry. I can't seem to find the cause. Any ideas?

 

 

Screenshot 2023-03-03 at 10.56.43.png
Categories:
  • RJM07 Profile Picture
    801 on at

    In your database, are any of the fields unique? like am ID or anything?

     

    Maybe it's trying to write something but failing because it's already there...?

  • kcg633755 Profile Picture
    on at

    Hmmm, I don't think that would be it as I am trying to edit the form not submit a new form with the same data.

  • RJM07 Profile Picture
    801 on at

    Slightly silly question, but are you doing some sort of lookup for the submit? to tell it you're looking to update opposed to add?

     

  • kcg633755 Profile Picture
    on at

    Never a silly question. No, I haven't needed a lookup in the past. I always used 'submitForm()' and it would update as well as add. It is rather a heavy load, do you think this is causing the issue? I know the threshold is 300 controls and I have 328 but I understand that is only advisory.

  • RJM07 Profile Picture
    801 on at

    That could potentially be an issue, might be worth removing some bits and seeing if that works...

  • kcg633755 Profile Picture
    on at

    I gave it a go, it wasn't this. I will have to do more digging

  • RJM07 Profile Picture
    801 on at

    So I have just sorted my Network error issue, I am using Patch() so it might vary 

    However I sorted mine by changing the order of code in the OnSelect() property. I had 2 Patch() functions going off in the same OnSelect() which apparently was causing issues, I have thinned it down and streamlined it and now that works... Maybe something else for you to try?

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard