Hi, regarding the error “The handle is invalid”, can you please look at this post and see if it solves your issue?
Also, for what concerns the fact that you’re getting the error message in Orchestrator, what I suspect is the following:
- An exception is raised
- Your Catch block catches the exception
- Your Catch block takes the screenshot
- Your Catch block throws an exception “The handle is invalid” while taking the screenshot and as there’s no try…catch block around the Take Screenshot activity then the exception is simply thrown right away.
So, either you fix the root cause of the exception that is thrown by the Take Screenshot activity, or you put a try…catch block around the Take Screenshot activity.