Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Heavy Active Directory use from the Microsoft AD spoke returns error

Nick78
Tera Contributor

We have some jobs that run which can occasionally have a high volume, which use the Microsoft AD spoke. When this happens the job can error, returning the message below. Has anyone run across this error before? How can I fix this?

 

Import-Module : A connection to the directory on which to process the request
was unavailable. This is likely a transient condition.

 

2 REPLIES 2

Simon13
Tera Contributor

We have the same issue and see a large number of faults created daily from our flows that uise this spoke command.  We'd love to see a resolution to this problem

zynsn
Tera Expert

Has anyone figured out a solution to this? I tried using a  try catch but it doesn't catch the error. 

 

ServiceNow KB says to limit the amount of connections to AD, I cannot see a good way to prevent 20 requests from being submitted for AD group memberships.

 

Powershell error "A connection to the directory on which to process the request was unavailable. Thi...