Project Server PSI QueuePublish method does not refresh enterprise Calculated fields

Posted on 2009-04-22
Last Modified: 2013-11-15
Hi all,

If I create a new enterprise calculated custom field I noticed that the
calculation is not processed until the project is re-published using project
Pro 2007.

I have writtern a service that re-published a set of projects every day with
the intention of forcing a re-calculation of the custom fields. I am using
the QueuePublish method (with a FullPublish) of the Project Web Services to
re-publish projects. There are no errors in the queue and everything seems to
be working. However, the custom fields values on the re-published projects
are not being refreshed....If I use Project Pro to re-publish the project the
Custom Fields are refreshed !!!
Any Idea's

Thanks in advance for any reply's.
Question by:sortech
    LVL 13

    Expert Comment

    I'm not surprised that you are seeing this. There are some project calculations that only happen when a project is opened in Project Pro.

    Two possible answers:
    1. The February Cumulative update (a hotfix) fixed some issues with the PSI QueuePublish method. Make sure to test that. My suspicion is that that still won't solve this for you.

    2. The other option is to publish via Project Pro. You can run the app on the server and publish changed projects. Messy, but gets the job done. Colby Africa recently blogged about exactly this, and included sample code for elements of this solution:

    Hope this helps...
    James Fraser

    Author Comment

    Thanks James.

    I gave the Project Pro method a think over before attempting to use the Project PSI. The problem I have is that the solution needs to be rock solid.

    I did get some feedback from another blog. They noted that QueueUpdateProject method forces a recalc of custom fields and I am currently looking into this.


    Accepted Solution

    Ok... After many hours I found the solution.

    Using the PSI you need to...
    1. Open each Project
    2. Get all the Custom Fields setup on the Project Server Installation
    3. Check if the Field exists on the opened project. If not then add it to the project
    3. Save the Project and Publish it using QueueUpdateProject

    This works.

    Thanks for all imput

    Author Comment

    Oh and you need to work backwards on calculated fields. IE create all the dependant fields before creating the top level field.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Re-planning is just as important as planning. MS Project files need to be updated regularly to reflect the current status of the project and to streamline the upcoming tasks. We have seen a lot of issues where project managers have not updated the p…
    Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now