I'm getting the following error try to run the about command:
Add-PWConnectedProject : Response status code does not indicate success: 401 (Unauthorized).
Anyone got any insights?
Add-PWConnectedProject : Response status code does not indicate success: 401 (Unauthorized).At line:1 char:1+ Add-PWConnectedProject -ConnectedProjectName "Plant Capacity Increase ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-PWConnectedProject], HttpRequestException + FullyQualifiedErrorId : System.Net.Http.HttpRequestException,PWPS_DAB.AddPWConnectedProject
Would really appreciate some help with this as we are unable to create connected projects.
I am now getting this error:
PS C:\WINDOWS\system32> Add-PWConnectedProject -ConnectedProjectName "Test Project from Poweshell" -Token PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTE2Ij8+PHNhbWw6QXNzZXJ0aW9uIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjEuMDphc3NlcnRpb24iIEFzc2VydGlvbklEPSJsZnVrYm5PWlp2ci5WOVhQSHdneXFfN1c -BaseURL connect.bentley.com/.../ -ConnectedProjectNumber 10101010 -CountryCode AU -WSGURL https://pwg.waveinternational.com:4443
WARNING: Error: Response at 'connect-contextregistry.bentley.com', 'sv1.0/Repositories/BentleyCONNECT--Main/ConnectedContext/Project' was null.
Hey Matt, which version of ProjectWise Explorer do you have installed? I am receiving the same error with version 10.00.03.434.
TLS 1.2 appears to be enabled on both my local machine and the PWG server. Is there anything else I should check?
Just a thought, what if you wrap the ConnectedProjectNumber in quotes?
Add-PWConnectedProject -ConnectedProjectName "Test Project from Powershell" -Token (#token) -ConnectedProjectNumber "10101010"
No good I'm afraid. I even tried setting up PS on the PWG server and running it from there, using an account that is an admin on that sever. Still the same error. Would there be anyone in Bentley support with potentially an insight on this?
Just for clarity though: Our setup is within our domain and not Bentley hosted. Would this make a difference?
Shouldn't make a difference. Without us being able to replicate, I'm not sure how to tell you to proceed. You can try to set up a meeting with me so I can look at your setup. I'm on east coast in the US.
Embarrassingly enough I've just figured it out. The token I was using had expired!
There is a few hours of our life we won't get back!