Welcome to TechNet Blogs Sign in | Join | Help

Server-Side Calculation of Custom Field Formulas

So I have a PSI application that pulls data from Oracle Financials and correlates it to specific projects in Project Server. using a key field it brings over 6 fields and writes it to 6 Project level Enterprise Number fields. It updates the fields and then calls QueueUpdateProject which should trigger a recalculation of custom field formulas. I also have several custom fields that use the original 6 fields in their formulas.

My problem is that the fields with formulas were not getting updated. If I opened the project into Project Professional then they calculated just fine.

It turns out that there is a problem with the calculation ‘engine’ in Project Server that causes it to stop recalculating these formulas if any one of them returns an error. In my case the error was caused by this formula: [Capital Actuals]/[Capital Plan] because for some of the projects the Capital Plan field was 0.

The solution is to make sure your formulas cannot return such an error. In my case it was changing the formula to this:
IIF([Capital Plan]>0, [Capital Actuals]/[Capital Plan], 0)

Similar issues can possibly be caused by a formula like [Field A]+[Field B] if either A or B have been deleted.

So if any of you are having issues where your field formulas are not refreshing properly go and check all your formulas and see if any of them are returning errors.

 

Merry Christmas\Happy Holidays\Have a Happy Next Two Weeks :-)

Published Thursday, December 18, 2008 8:21 PM by brianken

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Monday, January 05, 2009 10:09 PM by Colby Africa

# re: Server-Side Calculation of Custom Field Formulas

Nice work.  We need to connect up about that final build.

Tuesday, June 16, 2009 12:31 PM by projectified

# Filtering for an NA date in a PWA View

This post is for the person named Santhiya that commented on my “ Server-side Calculation of Custom field

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker