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 / {Stored Procedure} fai...
Power Apps
Suggested Answer

{Stored Procedure} failed: The request was not sent or there was no response from the server.

(1) ShareShare
ReportReport
Posted on by 4
Hi, 

We are working on Canvas App & performing CRUD operations using Azure SQL Server Database using only Stored Procedures via data gateway.

The SQL Server connector uses the data gateway to connect to the Azure SQL Server Database. I am also able to connect to the Azure SQL Server Database using SSMS.

We are making direct Stored Procedure calls using SQL Server connector via Canvas App (https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/connections/connection-azure-sqldatabase)

The Stored Procedure calls using Canvas App works majority of the time via data gateway.
 
We are calling Stored Procedure in Canvas App on click of button (OnSelect event) & triggering this button click event on load of screen in some cases.

Sometimes, when the screen is loading, we randomly get errors like "{Stored Procedure} failed: The request was not sent or there was no response from the server. Please check your internet connection."

Please provide solution for the above error.
 
Thanks in advance.
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,362 Super User 2025 Season 2 on at
    when you say the screen is loading do you mean code in the appOnstart or code in the Onvisible?
     
    If its the appOnstart, 1) make sure asynx for App Onstart is set
    2) move it to the OnVisible of the screen instead
  • CU12090902-0 Profile Picture
    4 on at
    We are calling Stored Procedure in Canvas App on click of button (OnSelect event) & triggering this button click event on load of screen in some cases.
  • timl Profile Picture
    36,391 Super User 2025 Season 2 on at
    I've seen cases in SQL Azure where the "auto-pause" feature has paused the database. The request that wakes it can take a minute, and this is a potential cause of the 'no response from the server' error. 
     
    To prevent this, you could try capturing the error within a call to IfError and try calling the stored procedure again.
     
    IfError(CallStoredProcedure...,
            CallStoredProcedure
    )
     

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard