Remove a MSP project from the prdocument table

book

Article ID: 142460

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

How do you temporarily remove a project's MPP File from the prdocument table for Microsoft Project (MSP) Interface issues and what is the impact?

Note:  Prior to running this query, it's recommended to check with Broadcom support first unless a KB is found with a match for the symptoms are you are facing.

 

 

Environment

Release: All Supported Releases
Component: MSP

Resolution

What does this query do?

  1. It removes the project temporarily from the prdocument table  which is where MSP project's mpp files are stored
  2. It does not remove any data within Clarity
  3. Once the project is opened successfully from Clarity to MSP and saved back, the record is recreated in the prdocument table
  4. The query run below creates a backup of the project in the prdocument table as a precaution just in case the project record needs to be restored

When is this query needed?

This may be requested by Broadcom support based on the symptoms reported for one or more MSP Projects and can include:

  1. Issues opening projects
  2. Issues saving projects
  3. In a few scenarios, it may also help with msp data / setting issues, but this should be checked first with support unless a KB is found that confirms this is needed
  4. One common cause that requires this query is due to copying and pasting of MSP tasks in 15.7 and lower in an unsupported method (see KB 10395 for more details)

IMPORTANT: IMPACT OF RUNNING SCRIPT:

MSP Legacy Driver: All custom views for the project will be deleted

  • ​When the project is opened from Clarity after the update, the project will only open with the default columns set for the view. Users will have to recreate their views for the project, unless they have them saved in MSP. (This doesn't apply in the new driver, as views are no longer saved. Users should always save the views on their MSP and switch to that view after the project opens).

Any custom field data not mapped to Clarity will be deleted from the project. This only impacts data entered in a MSP Field (such as a text field) and that data isn't stored in Clarity. This impacts both the MSP New Driver and MSP Legacy Driver.

MSP New Driver: All Fixed Work tasks will currently change to Fixed Units.  The user will need to manually change all applicable tasks back to Fixed Work the next time the project is opened in MSP.

How to remove from prdocument table:

(SaaS customers, please contact Broadcom support for assistance)

Run the below query:

update prdocument

set prrecordid = ?? where prrecordid=?

and prtablename= 'PRJ_PROJECTS'

Notes:

  1. Replace the ? with the 5 million number of the project. For ?? change the 5 to a 9. This will create a backup of the record in the database.
  2. Run the below query to ensure that there is not already a project with the ?? prrecordid:

        select * from prdocument where prrecordid = ??

     3. To find the 5 million number for the project, you can run the below query (or it can be found in the PPM URL when clicking on the link to the project from the project list) 

        select id from inv_investments where name='<project name>' and object_type = 'PROJECT' 

Additional Information