Kill process question

Hi,

The bot I am trying to run throwing an error at kill process “EXCEL”.
I can check continue on Error to get rid of this error.
But there seems to be 500 instances of this kill process “EXCEL” in the code.
Is is laborious to change.

What is wrong with kill process “EXCEl”. wht should it throw error? Any easier way to fix?

Thanks a lot,

@A_Learner

try to upgrade the package…some times it does throw error for multiple reasons

If you dont want to do it everywhere use a geh(global exception handler) and handle only that exception and rethrow any other exception

cheers

Thank you, upgrade which package?

Thanks again

@A_Learner

System packages

cheers

1 Like

Can you please provide an example how to use global handler in this instance?

Thank you

@A_Learner

use if condition in geh

and then in that check the exception message is same as the one you want to ignore

exception.messsage.contains("xyz")

on then side just use ignore option and on else use continue or error

you can use other properties like activityinfo instead of message

cheers

2 Likes

@Anil_G

In the above I am writing exception.Message.Contains(“Kill Process: Excel encountered errors while trying to kill a process”)

But it is not catching the kill process excel exception. What am I doing incorrectly?

Thank you,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.