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
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:
  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    @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

  • gates78 Profile Picture
    16 on at

    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. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard