cancel
Showing results for 
Search instead for 
Did you mean: 

Code stage is not working when my server is inacive/offline

HarishPasham
Level 3
Hi Team, We need small help on the BP code stage. Blue Prism version number : 5 Issue description : We are Opening a Portal , need to take a snapshot every hour. We have written C# code. It works fine. Now scheduled it for every 1 hour. issue : if we are active/online, the code is getting executed fine But if we come out from the server, the code stage is not getting executed. Thanks in advance!! Quick help is Appreciated.  
6 REPLIES 6

DavidEdwards-Da
Level 5
What do you mean by snapshot?

HarishPasham
Level 3
i mean screenshot

John__Carter
Staff
Staff
If you are accessing the server via RDP it could be the reason. The desktop of the remote machine only exists while the RDP session is connected and is disposed on disconnect. This is why things like screenshots and global keystrokes seem to work only while you are connected. For this and other reasons Blue Prism does not recommend RDP as a connection tool. http://portal.blueprism.com/system/files/2017-11/v6%20Data%20Sheet%20-%20Remote%20Access%20Tools.pdf

TomaszAdamski
Level 5
@John Have you ever tested RDP connection with /console switch? So you can run mstsc /console and then you are connected to console session not to the virtual desktop.

DavidEdwards-Da
Level 5
Use tscon to return the desktop session created by rdp to the console, if you insist on using RDP as a remote viewer. tscon information available here: https://technet.microsoft.com/en-us/library/cc770988(v=ws.11).aspx

AishwaryaBalasu
Level 2
we are facing the same issue too. even if the user is connected, the scheduled process throws an error. we check this in the task manager where the user session shows active. however if we keep the server open using RDP (using robot credentials) the system is able to pick the screenshot. Can you please explain ?