Product(s) and Version(s):
MicroStation integrated to ProjectWise Explorer
Problem:
Design files, with Managed Workspace association, were failing to open from ProjectWise Explorer. The following error message is displayed,
Last Error [222]
Cannot start application for the specified document. Check your program associations.
Failed to generate managed workspace configuration file.
On removing the Managed Workspace associations from the file, the file opens perfectly.
Troubleshooting Steps:
The root cause of this issue was a MicroStation configuration variable which was defined incorrectly in the Managed Workspace configuration. Such configuration variables can be defined in the ProjectWise CSBs (Configuration Settings Block) or, the CFG files included with the CSBs.
To capture the issue, the following parameters were turned up for the pwc log on the user's machine:
The following link details how to gather elevated ProjectWise Explorer Client logs to capture the issue:
https://bentleysystems.service-now.com/community?id=kb_article_view&sysparm_article=KB0019935
In this case, the following ERROR lines were observed in the pwc.log file,
2023-09-25 16:15:52,868 ERROR [0x00007bf4] pwise.dms.workspace - (): With error 10 failed to expand macro MS_PLTFILES value '$(dms_project (_DGNDIR)\'
2023-09-25 16:15:52,869 FATAL [0x00007bf4] pwise.dms.workspace - collectCompiledFileContent(): Failed.
2023-09-25 16:15:54,277 ERROR [0x000057f8] pwise.dms.workspace - Failed to compile configuration files. Compilation failed with aaApi error [10] and error message [(null)].
2023-09-25 16:15:54,277 ERROR [0x000057f8] pwise.dms.workspace - Failed to create final configuration file.
2023-09-25 16:15:54,278 ERROR [0x000057f8] pwise.dms.workspace - Configuration file generation for the document [440615, 14] failed.
2023-09-25 16:15:58,083 ERROR [0x000057f8] pwise.dms - Error 222 "Cannot start application for the specified document. Check your program associations. Failed to generate managed workspace configuration file."
The above ERROR lines in the pwc.log indicates that the variable of MS_PLTFILES is defined incorrectly in one of the CFG files or ProjectWise CSBs. As a result, the configuration file fails to generate for the design files.
The pwc.log file indicates the format of the statement is '$(dms_project (_DGNDIR)\' which is incorrect.
The correct format is:
$(dms_project (_DGNDIR))
Solution:
Once you find the offending variable from the log file, the next step is to find the variable and correct it in either the ProjectWise CSB's, or the workspace config files in ProjectWise Explorer.
The following solution follows the example log file mentioned above.
Finding the variable in the ProjectWise CSB's
To find out whether the variable is defined incorrectly in any of the ProjectWise CSBs & correct it, please follow the steps given below:
Repeat the process for all the CSBs in all the levels namely,
Predefined, Global, Application, Customer, Organization/Site, Workspace, Workset/Project, Role, User
Finding the variable in the ProjectWise workspace config files
To find out whether the variable is defined incorrectly in any of the included PW CFGs and correct it, please follow the steps given below:
Sometimes, files of different extensions (other than cfg) can be included in the Managed Workspace configuration using %include statements. These files need to be reviewed for the variable of MS_PLTFILES as well.