Screenshot in Disconnected Mode

Hi All,

I am trying run robot in Disconnected Mode using Interactive Session. Robot is unable to take the screenshot of a image using selector. This is working perfectly fine in connected mode.
But in disconnected Mode, “object reference not set to an instance of an object” issue is occurring. Can you please provide a solution

what is disconnected and connected mode?

It only works under the lock screen if you start the robot from Orchestrator.
For RDP use case check the Desktop Disconnected issue.

Disconnected Mode: bot running in Interactive Session.
Connected Mode: Bot running in regular session.

I am not facing any problem in running the bot…
Robot is able to do most of the steps in interactive session but it is getting stuck on the screenshot activity.
I am providing selector to the screenshot activity

Are the steps performed via background automation?

and also, how are you running the workflow: studio, tray, orchestrator?

Yes, via background automation … I am using activities which work fine in interactive session… like click activity with send window message checked,get text,set text etc

Task Scheduler

Did anything ever come of this?
We are trying to figure out how to get a screenshot when there is an error (running in unattended mode on a VDI) to assist with troubleshooting. But we cannot get a screenshot.

Thank you,


I am having the same problem, I am running my robot from a remote windows server, when i minimize the windows remote session, the robot is not able to take screenshots.

any solution?

This problem exists in 2018.1 as well.

I am also facing same issue. Object reference not found when saving the screenshot. I am using RDP and through orchestrator triggering the process.

When screen is visible it works fine but when this acitvity goes in background it’s getting stuck.

1 Like

Survarna, which edition are you using community or enterprise?

I am using community edition