Hello All,
I am having an issue running UI Flows in unattended mode.
I created a web UI flow and in attended mode it works flawlessly. If i am logged into the server i can see UI Flows open chrome and perform all the coded actions.
The issue is when im not logged into the server - the UI flow never runs or completes. The flow fails with the below error after 2 minutes.
Solved! Go to Solution.
After much trial and error, we figured out the issue and i hope this helps someone else some day.
The attached interactive logon policies were the ones preventing Power Automate from logging on.
Once we removed these, everything started working fine.
If Microsoft could confirm the issue on their end and hopefully release a fix some day, it would be appreciated. I also let the reps working on our support ticket know the resolution.
Hi @erea,
Could you please show me your Flow configuration?
You could have a try to change the service account for the on-premises data gateway to check whether it could work:
https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-service-account
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
I tried changing the gateway account to the account i remote in as to view "attended" jobs and it still does not work.
Same result, attended works fine but unattended does not run at all.
My configuration is below but please let me know if you need more.
Thank you for the assistance
Just trying to keep this alive as i cannot the figure the issue out still.
This is a huge issue with Power Automate right now.
so, weve identified the general cause of the problem. It looks like there is some kind of server security policy causing an issue.
Everything looks fine when we investigate and cannot determine what is blocking Power Automate from creating the user session in unattended mode.
If anyone has any ideas, please let me know.
Hi @erea
thank you for your time reporting this problem.
Currently we considered it as a bug.
I'll keep on monitoring the bug and keep you posted.
Did you get this resolve? I am having the same issue with a new UI flow.
Thanks.
Thank you, and please let me know if there is anything that can be done in the meantime.
As i mentioned, this is a security policy issue and going through each 1 by 1 is proving to be a huge time sink.
Thanks for your reply. Honestly, I was having high hope that the UI flow will automate a manual process that causes some bottleneck.
I have tried to run the UI flow in unattended and attended mode with no success. The only way to run it is in attended mode with the windows screen unlock, since if it is locked throws an error. But there is GPO that locks the screen when it is idle.
Thanks.
Hi @mg2019
Thank you for your response.
Please walk through this document to have a better understanding about those modes: https://docs.microsoft.com/en-us/power-automate/ui-flows/run-ui-flow#run-ui-flows-unattended-or-atte...
In case you are having a problem running UI flow and have never got succeeded please re-install the newest UI flow and try again.
After that if you are still facing the error, i would suggest you to open a ticket with Microsoft Support maybe i can take a look and help you.
Regarding the issue while running in Unattended mode. Currently, we are able to reproduce the issue and we are actively working on the investigation i'll keep you posted.
thank you.
Hello @Geralt
Thanks for your reply. I followed that link but with no success. I created a ticket at Microsoft and a support guy called me
is there any update on this issue? A timeline as to when a fix will be implemented?
Hi.
Thank you for following up with this issue.
and attached along with ticket
Ask them to reach the Product group for further investigation.
My apologies for the inconvenience if any.
Thanks,
Hello
I created a ticket with Microsoft and they could not fix the issue and determined that there was a bug. They did not provide any ETA but I was told that Microsoft is working on a solution.
This was their last email:
"As discussed we have run attended flows successfully without any issue but while running with unattended flows it throws an error as it is a bug for now which is not supported. Our Product team is working on these unsupported features and making possible improvisations and would be fixing them in the next release."
I have not heard anything back from them so at this point, in our case, the UI flows tool is useless.
Thanks,
MG
Hi @mg2019
Please do raise a new ticket with Microsoft Support or re-open the previous one if you need it.
Also in the ticket please provide the info detail i shared before in the ticket, include a UI flow run details:
Please insist the support engineer to reach out to Production Group for UI flow since we have been investigating for every customer who facing this issue.
Best regards.
After much trial and error, we figured out the issue and i hope this helps someone else some day.
The attached interactive logon policies were the ones preventing Power Automate from logging on.
Once we removed these, everything started working fine.
If Microsoft could confirm the issue on their end and hopefully release a fix some day, it would be appreciated. I also let the reps working on our support ticket know the resolution.
Hi,
The root cause is we don't manage to create the user session to run the script for unattended scenario. This occurs when the interactive logon: message text/title for users attempting to log on policies are enabled.
The reason is simple: this is a message showing up when the session is created, but in unattended scenario, there is no users in front the screen to validate the message, thus the creation of the session will be stucked at that screen.
Regarding the fix, we are currently validating the solution. Hopefully, it will be available for the next august release.
Best regards,
That's great news! Do you know when the next August release would be released? Are there patch notes somewhere so we can track what is being fixed?
If this issue is going to be fixed soon then we can avoid changing our security policies which would be great.
Hi everyone,
Issue is fixed with the new august release. The version 1.3.27.20224.
Thanks you all for your patience with us.
Best regards.