Unable to run the bot in unattended (Failed in creating a session)

Dhruvika Rathore 0 Reputation points
2025-07-31T08:39:41.7733333+00:00

Whenever the bot is trying to run in unattended , I am getting this error below

User's image

The error that we are getting is (Cannot create a new session to execute unattended run)

After the failure occurs the machine is getting locked, I am using the right credentials as, I am able to login to the machine manually. Few days back we had some changes done in network settings , which might have caused the issue.

User's image

As we are trying to find the solution for this issue , we also came across this error is also coming while we are trying to insert the run desktop flow command in cloud flow .

User's image

Error says : The Gateway for the desktop flows is no longer supported ,Please switch to direct connectivity .

  • We have tried to install the Power automate and power automate runtime machine . The problem still persists.*

I have a few questions :

  1. Is the issue related to gateway or DNS ?
  2. Are any firewall settings blocking it ?
  3. Can you guide us on what parameters the bot makes the connection with the machine ?
  4. What is exactly happening in the backend .?
  5. How we can check why the connection was blocked and machine is getting locked ?

Please need your help on this as soon as possible as the bot is in production .

Developer technologies | .NET | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.