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 Apps / SubmitForm: Network Er...
Power Apps
Unanswered

SubmitForm: Network Error When Using Patch Function

(0) ShareShare
ReportReport
Posted on by

I'm building an app that connects to a SharePoint list. I have had trouble with it in the past trying to get it to auto-populate and update certain fields, but seemed to find some solution to those issues. Now, however, when I try to submit the form, I am getting the error: "Network error when using Patch function: The requested operation is invalid". I am using a button with the OnSelect property being SubmitForm(Form1).

 

I have attempted reconnecting to the data source and re-making the submit button. In one instance, the submit button worked briefly after being remade. I am not sure where the issue lies at this point or how to troubleshoot further.

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    Hi @fhamm,

     

    Very common question.  A few typical checks:

     

    • Remove each field from the Form one by one until the error disappears to pinpoint which field is causing the problem.
    • Check if you are patching text values to a number column (and vice versa) or if you’re patching to a choice field
    • Check if any of those fields have "enforce unique values" enabled and you're not patching to a field which already has the same value
    • If any of your fields are a choice field type, check if the choice from the combo box/dropdown in the app exists in the available choices in the SharePoint list. If not, you will need set the SharePoint choice column to allow “fill in” choices (or 'can add values manually' in modern SharePoint

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a Thumbs Up.

  • fhamm Profile Picture
    on at

    I'm not sure what the problem was, but I did find the field that was causing the issue, deleted it, and re-added it. I used the exact same code in all of the properties as before and it worked.

  • Viswanath Profile Picture
    28 on at

    It helped. I got the same error. In my case, the lookup record I'm selecting doesn't have minimun roles. So, any error that occur (from CRM) the canvas app shows the error msg as Network Error When Using Patch Function

  • TKSHEP Profile Picture
    212 on at

     I have the same error doing the same function where you able to find a solution for your error?  

    Thank you for any assistant you can provide.

  • RBettinelli Profile Picture
    23 on at

    I'm having the same problem but only for other uses who are trying my app. I can use it just fine my SharePoint list is populating but other users get errors.

  • Shravyashree_01 Profile Picture
    174 Moderator on at

    This can happen If you are validating User().Email = yourEmail in any of the controls

    or using createdby = user().email [since you would have created the list items]

    If these do not work,

    It would be better if you shared the error for better understanding.

  • RBettinelli Profile Picture
    23 on at

    i ended up recreating the app and it got rid of the errors.

  • Stoffel-Thorste Profile Picture
    2 on at

    I had the same problem and I looked at countless explanations on the web from all kinds of experts explaining complicated patch syntaxes.

    What solved the problem for me was a setting in my SharePoint list that required unique values. That meant a certain choice could only be selected for one single data set. ... When I deselected, the "unique value" requirement, the PowerApp worked fine. I could easily edit as well as add new data.

    Hope this helps as much as the comments from the experts.

    Keep well

    Thorsten

  • ahenn22 Profile Picture
    15 on at

    Please check that you don’t have any calculated fields in your form or patch

  • CCJones Profile Picture
    244 on at

    Thanks for this! I had this in a few places and was pulling my hair out trying to figure out where the error was coming from! I changed it to use the Office365Users connection instead and the error is now gone!

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard