UIPath copy sheet error handling

How do we handle error handling in copy sheet activity ? . If sheetname is already taken I want the bot to proceed if not then continue on copy sheet. Thanks.

By the way I am using invoke code to copy sheet.

should I wrap it to a try catch ?

use try catch and finally block or you can use if condition if sheet

do you have example ? how do we continue upon error ? @Aleem_Khan