I updated my PWPS_DAB from version 1.5.15.0 to version 1.11.2.0, and now when running some previously working code
$fldrs = Get-PWFolders -FolderPath $PathSource -slow
I get the following error..
Get-PWFolders : Error: Unable to load DLL 'PWSearchWrapper.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at PWSearch.SearchForProjectsByTree(Int32 iParentProjectId, IntPtr& ppProjects, IntPtr& ppComponentClassIds, IntPtr& ppComponentInstanceIds, IntPtr& ppEnvironmentIds, IntPtr& ppWorkflowIds, IntPtr& ppParentIds, IntPtr& ppStorageIds, IntPtr& ppIsParent, String[]& arProjectNames, String[]& arProjectDescriptions, String[]& arProjectCodes, Int32& iCountP) at PWSearch.GetAllProjectsInBranch(Int32 iParentProjectId, Boolean bGetPath) at PWPS_DAB.GetPWFolders.ProcessRecord() At \\jdcpwaut01\iPasDT-FolderCopy\iPasDT-FolderCopy.ps1:79 char:14 + $fldrs = Get-PWFolders -FolderPath $PathSource -slow + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-PWFolders], Exception + FullyQualifiedErrorId : Error getting ProjectWise folders.,PWPS_DAB.GetPWFolders
any help will be greatly appreciated
kind regards Gavin Chapman
Can you try uninstalling the PWPS_DAB module and reinstalling it. Let me know if this resolves the issue.
Uninstall-Module pwps_dab -Force -AllVersions
Install-Module -Name pwps_dab -Force
Please contact me at brian.flaherty@bentley.com. I'd like to schedule a WebEx to look into this issue with you.
Hi Gavin,
Have you found a resolution to the problem?
We have the same error.
We were previously on 1.7.17.0 and working fine, then after upgrading to current 1.12.1.0, we experienced the DLL issue.
We have done the forced uninstall and then re-install. No luck.