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

SubmitForm: Network Error When Using Patch Function

(0) ShareShare
ReportReport
Posted on by 56

I am using the same code I use for all my other power apps for my submit form button but for some reason I am getting a Network Error when using patch function. I have tried looking up for solutions and tried deleting my fields and replacing it but nothing works. my code is below where the SubmitForm has the error.

If(
    Form1.Valid,
    SubmitForm(Form1) & NewForm(Form1) & Navigate(Form1) & Notify
(
        "Your Form has been successfully submitted.",
        NotificationType.Success
    ),
    Notify(
        "Please fill the required fields",
        NotificationType.Error
    )
);
Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @rytze,

    Please set the successfuly notification on OnSuccess property of the Form1:

    Notify
    (
     "Your Form has been successfully submitted.",
     NotificationType.Success
     )

    Then set the OnSelect property of the submit button as:

    SubmitForm(Form1);NewForm(Form1);Navigate(Form1)

     

    If you have few required fields, I don't suggest you refer to Form.Valid, and I suggest you valid each required field one by one, Then set the DisplayMode property of the submit button as:

    If(IsBlank(textinput1.Text)||IsBlank(textinput2.Text),DisplayMode.Disbaled,DisplayMode.Edit)

     

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Use the monitor on the left side bottom ish on the left toolbar. Do the button click and look at the details and share your error. What is your datasource? Usually it's going to be because one of your data types is wrong. A required Field wasn't supplied or you're trying to patch a sql server datasource without a primary key / ident column. 

  • rytze Profile Picture
    56 on at

    my datasource is sharepoint list
    rytze_0-1710307377926.png

     

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    There should be a details info about the error on the right pane. 

  • rytze Profile Picture
    56 on at

    rytze_0-1710307681034.png

     

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Expand the Data line 14, usually error is in there. 

  • rytze Profile Picture
    56 on at

    rytze_0-1710307858392.png

     

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Yeah, error somewhere in one of your Update properties on the form controls not matching data type it's expecting on the SP side. Are There no errors in the app error area? Might be a field with no value trying to save to a required field or something along those lines. You'll have to go through and check, unfortunately they didn't provide which field in the error..

  • rytze Profile Picture
    56 on at

    the error in the app is my "SubmitForm" it says Network error when using patch function. I tried deleting my fields 1 by 1 but I cant seem to find the problem. The code I'm using worked for my other apps so I'm not sure what's causing this. Do I have to remake my app?

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Not really. If the codes the same then it might be a required column or a date field not allowing time or something that might not match up to the code  but usually your would get a code error.  

    have you tried to save and back out and reload the app. Sometimes it just needs a schema refresh to fix things.   

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