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 / Unknown network error ...
Power Apps
Unanswered

Unknown network error when using patch function.

(1) ShareShare
ReportReport
Posted on by

Any ideas how to troubleshoot this? The app was working great all week and I was only doing minimal changes (including adding one people picker column), then this starts and I cannot fix it.

 

I tried undoing al the changes I made since the last time it worked OK, but still get the errors. It's so freakin' non-descriptive I don't know where to even begin looking.

 

2023-03-24_16-42-38.png

Categories:
I have the same question (0)
  • BostonSailor Profile Picture
    154 on at

    I've found that using the Monitor feature in Power Apps has helped me identify the specific line of code that's failing.

  • Community Power Platform Member Profile Picture
    on at

    Never did that before so looked up how and unfortunately the app doesn't appear in the training playground to monitor.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Here you go

    !!.jpg

  • Community Power Platform Member Profile Picture
    on at

    Yeah, searching on the topic I had already found that out, but it requires me to run the app in "Play" mode, but when I do that it's blank!

     

    Hopefully these aren't obvious (or stupid) things: this is literally my very first PA app.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Daryl_K

    Are you using SubmitForm() or Patch() to save your data? 

  • Community Power Platform Member Profile Picture
    on at

    That's an excellent question, but I am not sure of the answer.

     

    I didn't create any special save button. I am just using the one that is always at the top of any form you create in SharePoint. Could that be the issue?

     

    2023-03-24_22-45-53.png

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Daryl_K

    Likely one of your data cards is incorrect. Have you modified any of them. 

  • Community Power Platform Member Profile Picture
    on at

    I modified the sizes of the actual cards, trying to "compact" the interface a little more. I am at a loss to suspect that change would be suspect.

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Daryl_K

    Your form somehow got corrupted. Delete it and start again. Make a note of any changes and save it each time. 

  • Community Power Platform Member Profile Picture
    on at

    I rebuilt the form, get the same error. The good news is the Play function works now, meaning I can use Monitor. The bad news is that the errors aren't any more descriptive. Everything is an "unknown" error.

     

    {
      "status": null,
      "duration": null,
      "dataSource": null,
      "responseSize": null,
      "controlName": "Button2",
      "propertyName": "OnSelect",
      "nodeId": 2,
      "formulaData": {
        "script": "SubmitForm(SharePointForm1)",
        "spanStart": 0,
        "spanEnd": 27
      },
      "data": {
        "errorMessage": "Network error when using Patch function: An unknown error occurred.",
        "raiseToastNotification": false,
        "wasReported": false,
        "functionName": "Patch",
        "context": {
          "entityName": "Button2",
          "propertyName": "OnSelect",
          "id": 7263,
          "nodeId": 2,
          "diagnosticContext": {
            "formula": "SubmitForm(SharePointForm1)",
            "span": {
              "start": 0,
              "end": 27
            }
          }
        },
        "info": "Network error when using Patch function: An unknown error occurred."
      }
    }
     
    {
      "status": null,
      "duration": null,
      "dataSource": null,
      "responseSize": null,
      "controlName": "Button2",
      "propertyName": "OnSelect",
      "nodeId": 2,
      "formulaData": {
        "script": "SubmitForm(SharePointForm1)",
        "spanStart": 0,
        "spanEnd": 27
      },
      "data": {
        "context": {
          "entityName": "Button2",
          "propertyName": "OnSelect",
          "id": 7263,
          "nodeId": 2,
          "diagnosticContext": {
            "formula": "SubmitForm(SharePointForm1)",
            "span": {
              "start": 0,
              "end": 27
            }
          }
        },
        "info": "One or more errors has occurred.",
        "dataSourceErrors": [
          {
            "Record": null,
            "Column": null,
            "Message": "An unknown error occurred.",
            "Error": 23,
            "ServerMessage": null
          }
        ]
      }
    }
     
    {
      "status": null,
      "duration": null,
      "dataSource": null,
      "responseSize": null,
      "controlName": "Button2",
      "propertyName": "OnSelect",
      "nodeId": null,
      "formulaData": {
        "script": "SubmitForm(SharePointForm1)",
        "spanStart": null,
        "spanEnd": null
      },
      "data": {
        "errors": [
          {
            "Kind": 23,
            "Message": "Network error when using Patch function: An unknown error occurred.",
            "Source": "Button2.OnSelect",
            "Observed": "Button2.OnSelect",
            "Details": null
          }
        ],
        "info": "Network error when using Patch function: An unknown error occurred.",
        "context": {
          "entityName": "Button2",
          "propertyName": "OnSelect",
          "diagnosticContext": {
            "formula": "SubmitForm(SharePointForm1)"
          }
        }
      }
    }

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