VMware Cloud Community
Wayne_sun
VMware Employee
VMware Employee

TypeError: Cannot find function openSession in object notfound when Invoke an external script

I have put some powercli scripts in a powershell host and invoke them from vRO7. I have added powershell host and can invoke ps script successfully. But I found this function is not stable as sometimes it return the error "TypeError: Cannot find function openSession in object notfound when Invoke an external script". I don't know what reason causes the error and please help me this issue, thanks a lot!

0 Kudos
2 Replies
eb8945
Contributor
Contributor

Did you find a solution to this?  I'm having the same issue.

0 Kudos
eb8945
Contributor
Contributor

Nevermind, I think I found the answer.  I had to re-import the SSL certificate for the PowerShell host... in doing so I realized I had two PowerShell hosts in vRO.  After deleting one and running update on the other... apparently the one i deleted was the one associated with my Workflow.  All I had to do was edit my workflow and reselect the PowerShell host.

0 Kudos