Hi Sanaa,
The difference between 'Immediate Stop' and 'Request Stop' is that when you use 'Immediate Stop' the session is going to terminate exactly at that point of the instance when you click on it no matter where your point of execution is currently at. Better way to stop the process is 'Request Stop' but to use this you need to have a Decision Stage in your process where you can use the expression: 'IsStopRequested'. What it essentially does is whenever you click on this button, the process won't be killed immediately but infact will stop only when the flow comes to this exact decision point. We generally put this decision after completing a particular transaction by making the queue item as Completed or as Exception so that we can ensure that the process is stopped safely. When you use 'Immediate Stop' a lot of unwanted errors can happen depending on what the bot is actually doing at that point of time. For example, if the bot is writing some Excel file and you click 'Immediate Stop', then doing so might result in the corruption of that file as we ended the process abruptly. Hence, as a best practice it is always recommended to use 'Request Stop' instead of 'Immediate Stop'.
However, as certain situations when let say your Automation is running in an infinite loop or your process doesn't reach the decision stage where 'IsStopRequested' is being used, 'Request Stop' functionality won't work. In such a situation, 'Immediate Stop' can be used so that you can stop the session and troubleshoot the errors.
------------------------------
----------------------------------
Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily
Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
Wonderbotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website:
https://devneet.github.io/Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.