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 / How to prevent navigat...
Power Apps
Suggested Answer

How to prevent navigation to next screen until patch successfully creates record in SQL table?

(1) ShareShare
ReportReport
Posted on by 22
Hi all,

Running into an issue where a patch function intermittently does not go through and does not display an error message. The patch initiates to the SQL table when selecting a button and then navigates to a "end" screen. My theory is that the patch is not completing before the the users reach the end screen and then they exit the app. How can I validate that the record is created in the SQL table prior to the app navigating to the end screen?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    14,615 Super User 2026 Season 1 on at
    hey
     
     
    did u already try something like this:
    IfError(
        Patch(SQLTable, Defaults(SQLTable), {Column1: Value1, Column2: Value2}),
        Notify("Error saving record. Please try again.", NotificationType.Error),
        Navigate(EndScreen)
    )
    
    you would need to modify the patch to your needs.
     
    if it helps please mark as verified answer
     
     
    cheers
  • NMatGWM2 Profile Picture
    22 on at
    Users are not receiving an error when this occurs, though. They reach the "end" screen without an error, yet the data was not patched.
  • Suggested answer
    nvrhughes Profile Picture
    123 on at
    You could always use Power Automate to update the SQL table. Once the SQL step is complete you can add a Respond to Power Apps step in the flow. You can send back any data from the table you want and any steps you have after calling the flow from the canvas app wont run until the flow responds. There is a 120 second timeout between Power Automate and Canvas apps FYI. 



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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard