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
Answered

Network error when using Patch functions: An unknown error occurred - Help!

(0) ShareShare
ReportReport
Posted on by 80

I have an app that has been working beautifully and just began throwing an error when I am attempting to patch form updates. I cannot think of anything that has changed: the data source is the same, the formulas are the same, the form inputs are the same. A patch I have set up in another part of the app is able to patch to the same data source, so I don't believe it has to do with the SharePoint list to which it's referencing. Below are the other things I have tried so far to figure out what's going on:

1. I ran Monitor but it did not provide any more detail to the error than the error message.

2. I refreshed the data sources.

3. I signed out of the account and signed back in.

4. I researched solutions online.

 

Some details about the app: 

 

  • A global variable, VarNew, is set to true when the user selects to complete a new form. Otherwise, if the user is completing a draft that was saved previously, the variable is set to false.
  • A global variable varFormData is set when either the user selects to complete a new form, or when the user selects to complete a draft previously saved. When the user selects to complete a new form, the variable is set as follows, in order to create a new item in SharePoint.
    • Set(varFormData, Defaults(Proposals)) && Set(varNew, true)
  • There are four screens with four forms, all of them with varFormData as the items property, and then there is a review form at the end. 
  • When the user gets to the end they can select to Send the request or to Save as draft. The formulas for each are below. 
    • Send request:
      If(varNew = true,
      SubmitForm(ReviewForm),

      Patch(Proposals,
      LookUp(Proposals, ID = varFormData.ID), BasicInfoForm.Updates, SolicitationForm.Updates, StrategyForm.Updates, BudgetForm.Updates, {Status: "Request in review"}));

       


      EmailNotificationProposalRequest.Run(varFormData.ID);

      If(IsEmpty(Errors(Proposals)), Notify("Success", NotificationType.Success));

      ResetForm(BasicInfoForm); ResetForm(SolicitationForm); ResetForm(StrategyForm); ResetForm(BudgetForm); ResetForm(ReviewForm); Set(varNew, false);

      Navigate(LoginScreen) && Notify(First(Errors(Proposals)).Message, NotificationType.Error)

    • Save as draft 

      If(varNew = true,

      Patch(Proposals, varFormData, BasicInfoForm.Updates, SolicitationForm.Updates, StrategyForm.Updates, BudgetForm.Updates, {Status: "Draft"}),

       


      Patch(Proposals, LookUp(Proposals, ID=varFormData.ID), BasicInfoForm.Updates, SolicitationForm.Updates, StrategyForm.Updates, BudgetForm.Updates, {Status: "Draft"}, {RequestType: "Proposal request"}));

       

       


      If(IsEmpty(Errors(Proposals)), Notify("Success", NotificationType.Success);

      Navigate(LoginScreen), Notify(First(Errors(Proposals)).Message, NotificationType.Error));

      ResetForm(BasicInfoForm); ResetForm(SolicitationForm); ResetForm(StrategyForm); ResetForm(BudgetForm)

I am probably missing some needed detail, so just ask. Again, it has worked seamlessly for weeks. 

Error_PowerAppsPatch.png
Error_PowerAppsPatch2.png
Categories:
I have the same question (0)
  • Verified answer
    NewtKris1 Profile Picture
    80 on at

    I figured it out! I had changed a column type in SharePoint and didn't update the fields appropriately in the Power Apps form. 🙈

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @NewtKris1 ,

     

    Glad to see you solved the problem.
    You could mark your answer as a 'solution' to close the case.

     

    Best Regards,
    Charlie Choi

  • lopezbec Profile Picture
    76 on at

    @NewtKris1   I am having the same issue, what did you have to do in PowerApps to correct the issue?

  • ssahir Profile Picture
    2 on at

    I am also facing same issue after change the column format in SharePoint list. Any how to validate it in Power Apps?

  • TerryWang Profile Picture
    4 on at

    If changed the column type, in power Apps edit screen, select '**Form*' in left 'Screens' tab, click 'Edit fields' option in menu bar or 'Properties' of the '**Form*'. Remove existed and changed field, and add new updated field there. Then all new properties of the edited column will be loaded.  

    You can reference from step 3 to 6 of below link:

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-choices

     

  • DanielSantana Profile Picture
    8 on at

    It happened to me because I set some fields required "true" from PowerApps. I just set them again to "false" and changed it to required from the SharePoint list. Hope it can be useful for u.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard