cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to create session on [MACHINENAME] - Failed to get effective run mode - Unable to calculate run mode - object [OBJECT] does not exist

PaulWyman
Level 3
Hi,

Just spent the past few hours trying to resolve the above message and couldn't find an easy solution, so when I solved it I thought I would share the solution in case anyone else comes across the same problem.

When running the below process I would get an error like the one below when running it as a session in the Control Studio. Running it in Debug worked fine.

"Failed to create session on [MACHINENAME] - Failed to get effective run mode - Unable to calculate run mode - object [OBJECT] does not exist"

Clearly there is a legacy OBJECT which is referenced in the Process> Components> Objects, somewhere but where do you start to find it? As I had copied quite a lot from other Processes I wanted to find a quick way to narrow it down.

11590.png

My solution was to create a blank process which linked firstly to the Orchestrator and then published it. Then I tried to run it on one of the workers. I knew this would give the above error so this was really just a sense check. Then removed the Orchestrator and added the Conductor, then repeated the process with the Collector, and finally the Executor. The Executor also gave the error but the Collector did not, so I knew the legacy link had to be in part of this process. I edited the Test Process and linked it to each of the components run by the Executor, until I found the Component which gave the error. Finally I added each of the Object pages referenced by the component in turn until I found which page was causing the error. Then I just looked at each Action on the page and found the legacy link. 

I'm sure there must be an easier way to find this, but the Dependancies didn't show which Object had the links and I didn't want to manually go through every single page.

I hope this helps someone.

------------------------------
Paul Wyman
------------------------------
3 REPLIES 3

PSSupport
Staff
Staff
Thanks Paul - out of interest take a look at this related KB article that discusses the root cause of this type of error being something other than Run Mode.

------------------------------
PS Support
PS Support Account for all of Professional Services
Blue Prism
Europe/London
------------------------------

Hi - I don't see a link here to any article....



------------------------------
Anton Hosang
RPA Developer
Smart Automation Services
Europe/London
------------------------------

Ankit_KumarRaj1
Level 2

Hi Paul

I have received this error today and was going through your answer.

I have just checked the referenced objects have any validation errors and found that few utilities are missing in the environment.
I have just imported the utilities and triggered the schedule. That was a simple fix for me 🙂

Best Regards
Ankit



------------------------------
Ankit Kumar Rajak
------------------------------