![]() |
| |||
| 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 |
| Sponsored links |
| |
![]() |
| Thread Tools | |
| Display Modes | |
|
|