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 Automate / Need help on executing...
Power Automate
Unanswered

Need help on executing SQL Stored Procedure on premise

(0) ShareShare
ReportReport
Posted on by 2

Hi, I am new to Power Automate. I want to run a SQL Agent Job from an on-premise SQL server to load data into a data warehouse. After this task is completed, I want to refresh the dataset on the Power BI service. Then, I would like to send an email to a group of people to notify them that the Power BI reports are ready for review.

  1. I installed a data gateway and created a connection to my database on the Power Automate portal. I also created a stored procedure to run the SQL Agent Job and set up the flow with a manual trigger. However, I am encountering an error when I try to create an SQL action to execute the stored procedure. Could you please help me resolve it?

    Error Details: The dynamic operation request to API 'sql' operation 'GetProcedure_V2' failed with status code 'BadRequest'. This may indicate invalid input parameters. Error response:

     

 

 

{
 "status": 400,
 "message": "The key didn't match any rows in the table. Inner exception: The key didn't match any rows in the table.",
 "clientRequestId": "4e55b264-478a-4810-b5e7-70eb0fc3110f",
 "error": {
 "message": "The key didn't match any rows in the table. Inner exception: The key didn't match any rows in the table."
 },
 "source": "sql-usgv.azconn-gcc-usgv-001.p.azurewebsites.us"
}

 

 

  • Could you please help me understand how to refresh a dataset on the Power BI service?
  • Could you also advise on how to send an email once the above two steps are completed?

Thank you for your assistance!

Ravi Potturi

Categories:
I have the same question (0)
  • pprasadravi Profile Picture
    2 on at

    I want to send an email with Power BI report :).

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard