EPMFAQ Forums - Connect with the EPM Community  

Go Back   EPMFAQ Forums - Connect with the EPM Community > Microsoft Project Forums > Project Server 2007


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-28-2009, 07:48 AM
Junior Member
 
Join Date: Nov 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting Task Constraint Date is giving problems in Scheduling!

Hello,

I seem to have run into a possible bug in the Project Server Scheduling Engine.

In our application, we dont maintain any scheduling information except the Project Start Date, rest is not mandatory. Hence I've written code that creates a Project with that StartDate and then I want to default all the Tasks to the ProjectStartDate.

Earlier, I used to just set the ProjecTStartDate and that would be it. The tasks would default automatically to the ProjectStartDate. That was fine until we discovered that the PSI throws 'ProjectSchedulingEngineException's all over, if the task work was increased to enormous values.

Hence, I started to explicitly set a constraint on each task, 'MustStartOn' and specifying the Constraint Date as ProjectStartDate.It works fine, except for one thing. Say I use the following code to set the Constraint Date:

TaskRow.TASK_CONSTRAINT_TYPE = (short)PSLibrary.Task.ConstraintType.MustStartOn;
TaskRow.TASK_CONSTRAINT_DATE = Convert.ToDateTime("1/27/2009 12:00:00 AM");

Then when I open the project in Microsoft Project Professional, I see that the Task Start Date (and Project Start Date) reads "1/26/2009". What makes it even wierd is that when I use ReadProject() to read the ProjectDataSet back, I see that the TaskStartDate (and ProjectStartDate) is exactly "1/27/2009 12:00:00 AM". But in Microsoft Project Professional it is one day less.

My actual concern is that when a MustStartOn constraint is set, the TaskStartDate is being set with the Time component also set as 12:00 AM (whatever I feed in the DateTime input). I feel the Scheduling Engine is supposed to set it based on the BaseCalendar, which dictates that Work time starts from 8:00 AM. This, I feel is confusing Microsoft Project Professional in its calculations.

Please reply is you feel if this is a bug, and I would be grateful if you could give me a workaround.

Thanks and regards,

Subramanian Vasudevan








Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -4. The time now is 01:51 PM.


Powered by: vBulletin®
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24