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 / Close web browser - on...
Power Automate
Unanswered

Close web browser - on error functionality

(0) ShareShare
ReportReport
Posted on by 44

Hi,

 

I am having some problems with the on error functionality of the close web browser action.

In the code, I have set the on error of close web browser to "continue flow run -> go to next action". For some reason this will not happen, if the web browser instance is not in correct format. then the step fails, regardless of the actions set in "on error".

 

Am I using the on error incorrectly or is this an error in the software ?

 

Below code will result in the On error functionality not working

image.png

 

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Shot in the dark, because I don’t really know what the scenario is. I know you set this up as a test, but there is nothing to do after, so what you showed me, I wouldn’t be surprised if it didn’t error out, because you told it on error to just keep going, then the flow would have ended and your browser is still open.

     

    Believing that you are simply showing this as an example, let’s build a workaround.

     

    If %Broswer.IsAlive% = ‘True’

        Close web browser %Browser%
    End (If)

     

    To be honest, I don’t know if the syntax  for %Browser.IsAlive% is ‘True’ , ‘true’ or ‘1’ , so I would suggest setting a random variable to %Browser.IsAlive% when you know it to be true, and see what it comes back as.  Should be a text value. Then make the IF statement match that text value.

     

    Good Luck!

  • Daniel23 Profile Picture
    44 on at

    Hi @MichaelAnnis,

    Yes, I didn't include the real scenario as it would be a longer post. But briefly, all our flows are built with a "shutdown" procedure if the flow fails. This shutdown procedure closes all applications that was opened by the flow so that the next flow will not be affected.
    In this shutdown procedure we use Close web browser (if the flow has used a web browser) and this is where I am facing the issue.
    I believe you are right that an if-statement could be used, but I just dont understand why the built in "on error" functionality of close web browser cannot continue if the browser variable is empty...

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    I believe the error focuses on “I tried to close it, but I wasn’t able to.”  In this case, there is just nothing to close, and I don’t think they built that error into the system. 

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard