Link to home
Start Free TrialLog in
Avatar of sortech
sortech

asked on

Project Server PSI QueuePublish method does not refresh enterprise Calculated fields

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.
Avatar of jbfraser
jbfraser
Flag of United States of America image

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.
http://blogs.msdn.com/brismith/archive/2009/03/13/project-server-2007-cumulative-update-for-february-2009.aspx

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:
http://blogs.msdn.com/colbyafrica/archive/2009/03/27/timedexecution.aspx


Hope this helps...
James Fraser
Avatar of sortech
sortech

ASKER

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.

ASKER CERTIFIED SOLUTION
Avatar of sortech
sortech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sortech

ASKER

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