How to fix a Power App form for SharePoint receiving the Patch Function error?

Jeannette Gilpin 0 Reputation points
2023-10-02T13:56:27.97+00:00

When altering a SharePoint list form with Power Apps, I receive this error when trying to add to the list using the Power Apps form: "Network error when using Patch function": The requested operation is invalid."

Screenshot 2023-10-02 084524

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-10-03T01:38:24.1833333+00:00

    Hi @Jeannette Gilpin,

    As far as I know, there are many situations when this exception occurs:

    1. You modified the data type, but did not refresh the data source, causing the submission to fail.
    2. There are required columns in your list, but you do not have a patch.

    Can you provide your patch formula and the properties of the relevant columns (such as choice columns or text columns)?

    If you want to catch the problem through exception catching, try

    https://www.matthewdevaney.com/power-apps-patch-function-error-handling/


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng


  2. Anonymous
    2023-10-24T06:34:28.0333333+00:00

    Hi @Jeannette Gilpin

    Did you create a column with unique values?

    If there are duplicates in this column in the records you submit, the above error will also appear!User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.