Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Network Error when using Patch function: The requested operation is invalid- SQL table

(0) ShareShare
ReportReport
Posted on by 69

Good evening ,

 

I am getting error when using Patch function to update and /or create a row in SQL table (using Powerapps of course). so the error is [

Network Error when using Patch function: The requested operation is invalid] is stopping the code and nothing happens on the side of data (SQL).

 

Just to let you know: connection is working and data is displayed from data source (table). Also, I have developer permissions on this db.

 

Function is :

Patch(

TableName, Lookup(TableName, Column_Key = Dropdown.selected.Value)

{

field1:  data1,

field2: data2,

field3: data3

}

)

 

Please assist. If you can suggest other solutions, that will be much appreciated.

 

Thank you.

Categories:
  • gates78 Profile Picture
    gates78 10 on at
    Re: Network Error when using Patch function: The requested operation is invalid- SQL table

    Hi everyone, 

     

    The issue persists but I fix it by using flows. So power automate push action to procedure in sql server that receives parameters as variables to change or add data to tables. 

     

    Power Automate is magic. 

     

    Thank you all. 

  • Michael E. Gernaey Profile Picture
    Michael E. Gernaey 33,251 Super User 2025 Season 1 on at
    Re: Network Error when using Patch function: The requested operation is invalid- SQL table

    @sbroud 

     

    unfortunately you need to have more information since the code looks fine. So please do this and it will tell you exactly whats wrong.

    Step 1. Close your App (stop it running)

    Step 2. Click the Stethoscope in the Top Right

    Step 3. On the bottom click Open Monitor

    Step 4. Once Monitor is running go back and run your app

    Step 5. Cause your issue to happen

    Step 6. Close the app

    Step 7. Go to the Monitor and Filter (top right) based on Error, or key word. Go to the line or lines that match this

    Step 8. Look at the Response Tab and you will have to expand the Body > and the Header >. Then look at the body to see more details on the error
    Do this for each line you find


    Step 9. On each line, also check the Code being executed on Tab 2


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,318 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,111 Most Valuable Professional

Leaderboard