aaApi_FetchDocumentFromServer does not allow fetching files with a long directory path even though Windows 10 has removed the limit.
This limit seems to be assumed and enforced by ProjectWise. How to I remove the limit?
ProjectWise Explorer 10.00.3.434ProjectWise SDK 10.00.3140Windows 10
My understanding is that you have to opt-in to enable long paths in Windows 10.
I"m not aware of any method to remove the limit from ProjectWise.
I'm assuming that you want to export a document to a folder that is in a long path. Does Import-PWDocuments work for you for importing files in long paths?
If so, looking at the source code, it appears that it requires specifying the path using a prefix of \\?\. Microsoft documents this here: https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd I'm not sure if you can make it work for exporting files from ProjectWise though.
Perhaps you might be able to code around the limitation?
You might also consider filing an enhancement request. Instructions are located here: https://communities.bentley.com/products/assetwise/inspecttech/w/wiki/21502/creating-a-new-service-product-enhancement-request
Answer Verified By: Kevin Cox