web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to create unatt...
Power Automate
Unanswered

Unable to create unattended session

(0) ShareShare
ReportReport
Posted on by 1

I created a Scheduled Cloud flow that calls a Desktop Flow to run in Unattended mode.  I have it connecting directly to a machine but when it runs I get "Cannot create new session to execute unattended run."   I registered the machine with my login and also have it connecting with my credentials.  I confirmed there are no active user sessions on this machine.  How do I troubleshoot this?  Is there something that will tell me "why" it can't create the session?  (like a permissions issue for example) Thanks for any help.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hi @Dheeraj_Brimma ,

     

    could you make sure Remote desktop is enabled on the target machine (the machine on which the unattended run will be performed). You should also be able to connect to that machine via remote desktop using the same credentials you used to create the flow connection. If you still get the same issue, could you provide the run id as shown in the screenshot below (x-ms-run-id, see headers part)

    moelaabo_0-1634833867725.png

     

  • Community Power Platform Member Profile Picture
    on at

    I'm having the same issue.  RDP is working and I can connect using the same credentials in the flow connection.

    Below is the run-id.

    DM77_0-1637710946846.png

     

  • Community Power Platform Member Profile Picture
    on at

    I have also the same message. Attended run works perfectly but unattendet is not working

     

    HR_0-1638390509357.png

    here ist the Header info


    {
     "Pragma": "no-cache",
     "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
     "x-ms-islandgateway": "GA0000005",
     "x-ms-run-id": "0394efd8-e452-ec11-8c62-002248811951",
     "x-ms-request-id": "westeurope:b4f3d2c2-14b9-4c13-86ca-fa458e44392e",
     "x-ms-correlation-request-id": "cbdbf917-e79f-4a6e-b4d1-9ba64da14700",
     "x-ms-flow-mobile-ios-version": "1.3.0",
     "x-ms-flow-routing-request-id": "WESTEUROPE:20211201T202550Z:cbdbf917-e79f-4a6e-b4d1-9ba64da14700",
     "Server-Timing": "x-ms-igw-upstream-headers;dur=105.9,x-ms-igw-req-overhead;dur=0.2",
     "X-Content-Type-Options": "nosniff,nosniff",
     "x-ms-service-request-id": "aa7c75a3-5b20-429a-bc24-450470ec6b67",
     "x-ms-correlation-id": "8257e433-57b2-40f4-a0ab-3251a2ec007f",
     "x-ms-activity-vector": "IN.0A.IN.01.00",
     "Timing-Allow-Origin": "*",
     "x-ms-apihub-cached-response": "true",
     "Cache-Control": "no-cache",
     "Date": "Wed, 01 Dec 2021 20:25:49 GMT",
     "Content-Length": "133",
     "Content-Type": "application/json",
     "Expires": "-1"
    }
  • AntFrench Profile Picture
    10 on at

    I have the same issue - any further on possible solutions?

  • Community Power Platform Member Profile Picture
    on at

    No Chance I sill have the same issue. I tested several VMs. The only thing changed is the Error message. Instead of  "Unable to create unattended session"  it is "Cannot create new session to execute unattended run."

  • AntFrench Profile Picture
    10 on at

    We did get this fixed in the end. The problem was caused by an Intune MDM baseline policy. The setting we updated was under "remote desktop services", 'Prompt for password upon connection' - had to be disabled for the VM.

  • Community Power Platform Member Profile Picture
    on at

    New Information from MS:  We found out that session creation fails when the user password (used for the connection) contains non-ascii characters. In my case I just had to change my password. 

  • elaaboum Profile Picture
    Microsoft Employee on at

    Hi @AntFrench,

    Are you still facing the that issue ? if it is the case; could you perform a new run and after it fails provide the runId ? (see above how to get the run id)

  • Community Power Platform Member Profile Picture
    on at

    Hi Elaaboum,

    Could you please help me on this.
    When I try running on attended mode, everything's working perfectly.
    But when I try unattended mode, it shows an error saying "Cannot create new session to execute unattended run"

     
      "Pragma""no-cache",
      "Strict-Transport-Security""max-age=31536000; includeSubDomains",
      "x-ms-islandgateway""GA0000005",
      "x-ms-run-id""779fcdc5-de92-ec11-b400-002248041d75",
      "x-ms-request-id""westus:408a1b62-38f3-4d6f-b2a9-ff2b7da39d2d",
      "x-ms-correlation-request-id""6e52e782-c487-46e1-bc0c-2ef788db8e32",
      "x-ms-flow-mobile-ios-version""1.3.0",
      "x-ms-flow-routing-request-id""WESTUS:20220221T062536Z:6e52e782-c487-46e1-bc0c-2ef788db8e32",
      "Server-Timing""x-ms-igw-upstream-headers;dur=91.2,x-ms-igw-req-overhead;dur=0.1",
      "X-Content-Type-Options""nosniff,nosniff",
      "x-ms-service-request-id""eea431fc-f9ea-4695-addd-28e7b407f447",
      "x-ms-correlation-id""f8a8cc54-3ecb-4e15-8eb2-bbf6234b79f5",
      "x-ms-activity-vector""IN.09.IN.09.IN.08.IN.01.00",
      "x-ms-connection-gateway-object-id""30d82cbf-ca88-44ea-bc8e-e52f54fa8f34",
      "Timing-Allow-Origin""*",
      "x-ms-apihub-cached-response""true",
      "x-ms-apihub-obo""true",
      "Cache-Control""no-cache",
      "Date""Mon, 21 Feb 2022 06:25:36 GMT",
      "Content-Length""133",
      "Content-Type""application/json",
      "Expires""-1"
    }


    Thanks.
  • elaaboum Profile Picture
    Microsoft Employee on at

    @Anonymous 

    there is a new version of PAD, could you download it and try using it. If you still face the issue after the update please let me know and provide the same info as above.

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard