- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2022 02:13 AM
I'm trying to run an AD Query powershell script on MID server. I'm able to run the same script from Workflow Activity Designer, but when I try to design the same thing in Action Designer
I get the following error:
"The server is not operational.
HRESULT: [-2147016646]
Stack Trace: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
at CallSite.Target(Closure , CallSite , Object )"
This is the first of 5 Flow Engine Log Entries.
Action PowerShell step Connection details:
"Connection: Define connection inline
Credential Alias: power (same used in Workflow activity)
Port:
MID Selection: Auto-Select MID Server
MID Application: Orchestration
Capabilities: Powershell
Remoting Type: Run on a MID Server or have your script establish a remote session"
I also get these error messages after the initial one:
"PowerShell script execution failed. Script returned status 1 using account user svc_orchestrator."
"Failed while executing QueryAD.ps1 (Access denied)"
"IPaaSActionProbe | The server is not operational.
HRESULT: [-2147016646]
Stack Trace: at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
at CallSite.Target(Closure , CallSite , Object )"
"IPaaSActionProbe | PowerShell script execution failed. Script returned status 1 using account user svc_orchestrator."
Anyone able to suggest some troubleshooting steps to resolve this error?
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2022 07:50 PM
Hi DafP,
I did end up finding the resolution to this issue, I can't remember precisely what I did to fix it, but it was to do with connections and credentials.
Firstly, in the Connection details of the action, I changed the Connection from "Define connection inline" to "Use Connection Alias". Then I set the Connection Alias to sn_ad_spoke.AD
I believe the problem was that I needed to create another connection to attach to the sn_ad_spoke.AD Connection Alias. I created a new connection, set the Connection Alias to sn_ad_spoke.AD, and set the credential to the same Windows credential I was using when I was getting this error.
Hopefully that should fix it for you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2023 01:35 PM
DafP1993,
I'm also trying to recreate a workflow activity in Flow Designer, the Workflow activity runs the Powershell script fine. Using the same credentials and identical parameters etc, Flow Designer gives me the same errors that you are facing. PowerShell script execution failed. Script returned status 1 using account.
Where you able to fix this issue?