Last Error 342 ...Failed to generate managed workspace configuration file


 Product(s):ProjectWise Explorer Client
 Version(s):08.11.09.122
 Area: Integration - MicroStation
 Subarea: Open / Close / Save As
 Original Author:Dana Guthrie, Bentley Technical Support Group

Error or Warning Message

Last Error 342 Cannot start application for the specified document.  Check your program associations.  Failed to generate managed workspace configuration file. File not found.

Explanation

The problem here is that the workspace was configured to copy down a file to the local workspace working directory and it is not found in Projectwise in the location it was told to look.

How to Avoid

Step 1 Turn up the Pw.log.xml for enhanced logging

  1. On the client, close out of ProjectWise Go to

    (If a 32bit machine) C:\Documents and
    Settings\<username>\Application Data\Bentley\Logs

    (If a 64bit machine)
    C:\Users\<username>\AppData\Local\Bentley\Logs

    and delete any files found in this folder

  2. then go to

    (If a 32bit machine) c:\program files\Bentley\ProjectWise\bin

    (If a 64bit machine) c:\program files (x86)\Bentley\ProjectWise\bin

    and open pwc.log.xml in notepad

    choose 'edit' then 'replace' and search for =“warn” and
    replace with =“all”

    Then do an edit find, look for the word:  hook

    Change the <priority value="all"/> back to
    “warn”

    Save the file and exit

Step 2 Recreate the problem and review the log

  1. Launch ProjectWise and recreate the problem
  2. Open the pwc.log and starting from the bottom up look for the Word ERROR.

    The pwc.log file will be found:

    (If a 32bit machine) C:\Documents and Settings\All
    Users\Application Data\Bentley\Logs

    (If a 64bit machine)
    C:\Users\<username>\AppData\Local\Bentley\Logs

  3. You will see lines similar to this

    ERROR [0x00000d9c]
    pwise.ft.dft - failed in FTnet_startFileCommand with status -11037

    ERROR [0x00000d9c] pwise.ft - Error -11037 "failed to receive file from server" at func: getfile_proc line: 308

    ERROR [0x00000d9c] pwise.dms - ManagedWorkspace: folder and document fetch failed.

    ERROR [0x00000d9c] pwise.dms - ManagedWorkspace: configuration file generation for the document [8386, 20] failed.

    ERROR [0x00000d9c] pwise.dms - Error 342 "Cannot start application for the specified document. Check your program associations.

  4. Just up from these lines you will find a line similar to the one below which is the file projectwise is not able to download.

    INFO [0x00000d9c] pwise.ft - dmsFTGetFileFromServer(0x1, 'myserver.bentley.com','c:/pwstorage/dms00123/Myfile.dgn','//Myserver/PWStorage/dms00123/Myfile.dgn',0x0)

    This error line will give you the file name and the dms folder number of where the file should live

  5. In ProjectWise Explorer find the folder and see if the file exists.

    (use search builder, look for projects and folders,criterion type: general properties, property: folder ID, add the folder number to the Value: example if it is folder number dms00123, enter 123, click add criteria then apply\okay.)

    If the file exists in this folder try to copy it out.

    If it fails then it is likely that the file does not exist in the storage area on the server.

    Go to the storage area to the dms folder to see if the file exists.  If it does not exist then restore the file from backup or from a location that you are confident was the last update of the file.

  6. Now test to see if the file and workspace open correctly.

  7. You may need to repeat the process as there may be other
    files that are not found.