Hi,
I'm using the Open Browser action in Appian RPA to launch a legacy web application. Occasionally, the website may be down, and when that happens, the bot execution fails with an error like "unable to navigate to URL."
In such cases, I would like to trigger a notification (ideally an email) to inform the support team immediately about the failure.
My questions are:
Is there any default mechanism in Appian RPA to send notifications (like emails) on task failures?
If not, what’s the best practice to implement an email notification when an action like Open Browser fails?
Any guidance or examples would be appreciated!
Thanks in advance.
Discussion posts and replies are publicly visible
HI sanmathis ,You need to handle the possible exceptions using IS WEB ELEMENT PRESENT when you work on Browser Automation.You need to manually write the possible exceptions occurred and create a subprocess for sending an email.You can check Take a screenshot: If you select this option, the robotic task takes a screenshot of the host machine immediately after the action completes.In Else Condition, You have to add a robotic subtask contains upload document mentioned in below image and configure the email body.We currently don't have an option to grab the RPA error messages from the execution log unless you write an Custom Java Code.
Thanks for the response.
I’ve tried a similar approach. In my robotic task, the first step is to open the browser, followed by navigating to the URL. However, the bot fails during the "navigate to URL" step itself—before any page content loads. Because of this, I'm unable to use browser conditions, as they only evaluate after the page is successfully loaded.
Since the failure occurs at the navigation step, I’m looking for a way to catch this specific error and trigger an appropriate notification or fallback action.
Would appreciate any suggestions or workarounds for handling this type of failure gracefully within the RPA flow or from the process model.
Thanks!
There is no need to use Navigate to URL, as the open browser already has an option to input URL.
Yeah, I tried in Open Browser and Navigate to URL. Both fails in my case
Please add the exception Start process in cleanup & check.It will work.
Hey Varun,
That’s a great suggestion—thank you! Since the bot runs as a sub-robotic task, I combined both your approach and Harsha’s suggestion to implement a solution.
Here’s what I did: I created a variable to track the successful completion of major steps during execution. Then, in the Cleanup section, I added a condition to start a process model to send an email if the variable indicates a failure.
This way, even if the bot fails mid-execution (like during the "navigate to URL" step), I can still trigger a notification from the Cleanup section.
Thanks again for the help!