SAVE IMAGE - NullReferenceException

Hi,

I trigger a process on daily basis using Task scheduler with active desktop session enabled but some times facing an null pointer exception in Save image activity after screenshot and when process triggered from tray manually it works fine. Please help me to find the root-cause of the issue.

Error:
ExceptionType: System.NullReferenceException
Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.Executor.WorkflowRunner.EndExecute(IAsyncResult result) in

I have seen this a few times, and I think there could be a timing issue. Try adding a delay between Take screenshot and Save Image.
Dynamically, you can use the Retry Scope to check that the screenshot was taken before moving forward. Something like this:

Thanks @ClaytonM
I will add the delay and check the result.