What does the error code 32768 mean?
Things used to work fine and it started failing consistently.
Using the same data source and credentials.
Version of ProjectWise is 10.00.03.280. Powershell module version is pwps_dab 18.104.22.168. OS: Win 10 Enterprise
Authentication is 'Projectwise' (logical)
Network settings are correct and pwping confirms that.
It works ok, using PW explorer.
code looks like:
WARNING: Error logging in to '<datasource-name>' 32768
Is there a way to turn on verbose logging using the Powershell module. It would help troubleshooting the issue.
ProjectWise Explorer has C:\Program Files(x86)\Bentley\ProjectWise\bin\pwc.log.xml to control logging levels.Is there anything equivalent for pwps_dab?
Please include some additional information. Which Version of PWPS_DAB, PowerShell, ProjectWise?
Also, be sure the Datasource is properly formatted: <SERVER>:<DATASOURCENAME> (example: bmf-ws2016-pwdi:Projectwise)
Thanks for your reply, Brian.PSVersion = 5.1.18362.752pwps_dab version = 22.214.171.124 (as mentioned in original post)PW Version = 10.00.03.280 (as mentioned in original post)
I confirm that the datasource is properly formatted.BTW, I noticed that datasource DisplayName seems to work as well, in addition to <SERVER>:<DATASOURCENAME>But to be clear I am not using DisplayName in this case, but what you suggest.What about the error code 32768? Any meaning behind this number?What about turning on logging? Any possibility?
there is no additional logging other than turning on Verbose like you have done.
Generally with Projectwise error numbers you can do:
And it will return details on the error, however that error number doesn't return anything for me.
You're probably going to have to figure it out bit by bit, testing each option you have. For example start with:
New-PWLogin -DatasourceName 'server:datasource' -UseGUI
that will prompt for username/password instead of using a secure string. It verifies both the datasource and username/password you have are correct.
then add the options you have one at a time on the command line and see what fails. I suspect it is NOT a username/password problem because the error for that is 58064
Thank you Kevin.It works fine using the GUI.
I did not know about get-pwerror. Nice tip. Unfortunate that it does not help in this case.
As far as I understand, the error is emitted by PW server. It should be documented somewhere, or?Anyone here close enough to a Bentley developer who could take a peek at the source code and run a grep on the code base?
I get that this module is not a Bentley product but if the error is issued by PW server...Unless it comes from pwps_dab module?
Olivier, I apologize, I totally overlooked the information you provided in the original email.