M
Mike
Question about submitting updates to tasks via the PSI - Basically, we are
synching up data (tasks, assignments, and time-phased actuals) from an
outside source to create a MSP 2007 Plan. The Project is created
successfully, as are the tasks and assignments (using enterprise resources).
However, attempting to push timephased actual hours into the plan results in
sporadic updates being dropped or ignored.
Here it fails with oh-so-helpful "unhandled exception error" (change xml
that it failed on listed below)
2:00:56 PM : Failed to update status for: 15eea254-deda-4ebc-a74a-7c0c3ccf80aa
2:00:56 PM : System.Web.Services.Protocols.SoapException:
ProjectServerError(s) LastError=GeneralUnhandledException Instructions:
Pass this into PSClientError constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Statusing.SetAssignmentWorkData(String changeXML)
2:00:56 PM :
<Changes><Proj ID="2b6d182c-4438-42db-8ce2-fd5cae7693f3">
<Assn ID="15eea254-deda-4ebc-a74a-7c0c3ccf80aa">
<PeriodChange>
<ActualWork Start="2008-04-08T12:00:00"
End="2008-04-08T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
Here, 37 seconds later in the processing job, the exact same assignment does
successfully accept a status update, for the same amount of time, on a period
4 days later:
2:01:33 PM : Assignment period updated:
2:01:33 PM :
<Changes><Proj ID="2b6d182c-4438-42db-8ce2-fd5cae7693f3">
<Assn ID="15eea254-deda-4ebc-a74a-7c0c3ccf80aa">
<PeriodChange>
<ActualWork Start="2008-04-14T12:00:00"
End="2008-04-14T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
Futher complicating the issue, when I use the SetAssignmentWorkData method,
the results are not consistent. It appears to be dropping certain timesheets
(if I go into PWA and view the assignments transaction comments, the do not
show any updates for the days being dropped. However, the XML success
submissions DO show up in the log as being given to the system - sometimes
even without erroring out, they just get ignored.) These ignored timesheets
seem scattered throughout (not isolated to only the first or last instances -
in one instance they were smack in the middle of the assignments duration)
As an illustration, the following XML gets ignored.
<Changes><Proj ID="7e909e1d-5e47-47a1-963c-c6bcb1f029f3">
<Assn ID="5d0c9cab-4453-4242-82d8-638c549c206a">
<PeriodChange><ActualWork Start="2008-04-14T12:00:00"
End="2008-04-14T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
These, however, are ok.
<Changes><Proj ID="7e909e1d-5e47-47a1-963c-c6bcb1f029f3">
<Assn ID="5d0c9cab-4453-4242-82d8-638c549c206a">
<PeriodChange><ActualWork Start="2008-04-11T12:00:00"
End="2008-04-11T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
<Changes><Proj ID="7e909e1d-5e47-47a1-963c-c6bcb1f029f3">
<Assn ID="5d0c9cab-4453-4242-82d8-638c549c206a">
<PeriodChange><ActualWork Start="2008-04-21T12:00:00"
End="2008-04-21T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
(Below is the log from the PWA - you can see it skipped the work on the
14th, but accepted the other two. As an added bonus, for this same task,
other assignments DID accept time that day (Apr 14th), just this particular
assignment did not)
Actual Work On 4/8/2008 → 2h
Actual Work On 4/9/2008 → 3h
Actual Work On 4/10/2008 → 2h
Actual Work On 4/11/2008 → 2h
Actual Work On 4/16/2008 → 2h
Actual Work On 4/17/2008 → 2h
I've tried two different methods to push timephased actual hours into the
plan, and using both methods produces sporadic results with an "unhandled
exception error" on some submissions, and ignoring updates on other
submissions.
This happens using the statusing service, and both the
UpdateStatus(changeXml) method, and the SetAssignmentWorkData(changeXml)
methods. Any thoughts on why this is occurring?
synching up data (tasks, assignments, and time-phased actuals) from an
outside source to create a MSP 2007 Plan. The Project is created
successfully, as are the tasks and assignments (using enterprise resources).
However, attempting to push timephased actual hours into the plan results in
sporadic updates being dropped or ignored.
Here it fails with oh-so-helpful "unhandled exception error" (change xml
that it failed on listed below)
2:00:56 PM : Failed to update status for: 15eea254-deda-4ebc-a74a-7c0c3ccf80aa
2:00:56 PM : System.Web.Services.Protocols.SoapException:
ProjectServerError(s) LastError=GeneralUnhandledException Instructions:
Pass this into PSClientError constructor to access all error information
at
Microsoft.Office.Project.Server.WebService.Statusing.SetAssignmentWorkData(String changeXML)
2:00:56 PM :
<Changes><Proj ID="2b6d182c-4438-42db-8ce2-fd5cae7693f3">
<Assn ID="15eea254-deda-4ebc-a74a-7c0c3ccf80aa">
<PeriodChange>
<ActualWork Start="2008-04-08T12:00:00"
End="2008-04-08T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
Here, 37 seconds later in the processing job, the exact same assignment does
successfully accept a status update, for the same amount of time, on a period
4 days later:
2:01:33 PM : Assignment period updated:
2:01:33 PM :
<Changes><Proj ID="2b6d182c-4438-42db-8ce2-fd5cae7693f3">
<Assn ID="15eea254-deda-4ebc-a74a-7c0c3ccf80aa">
<PeriodChange>
<ActualWork Start="2008-04-14T12:00:00"
End="2008-04-14T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
Futher complicating the issue, when I use the SetAssignmentWorkData method,
the results are not consistent. It appears to be dropping certain timesheets
(if I go into PWA and view the assignments transaction comments, the do not
show any updates for the days being dropped. However, the XML success
submissions DO show up in the log as being given to the system - sometimes
even without erroring out, they just get ignored.) These ignored timesheets
seem scattered throughout (not isolated to only the first or last instances -
in one instance they were smack in the middle of the assignments duration)
As an illustration, the following XML gets ignored.
<Changes><Proj ID="7e909e1d-5e47-47a1-963c-c6bcb1f029f3">
<Assn ID="5d0c9cab-4453-4242-82d8-638c549c206a">
<PeriodChange><ActualWork Start="2008-04-14T12:00:00"
End="2008-04-14T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
These, however, are ok.
<Changes><Proj ID="7e909e1d-5e47-47a1-963c-c6bcb1f029f3">
<Assn ID="5d0c9cab-4453-4242-82d8-638c549c206a">
<PeriodChange><ActualWork Start="2008-04-11T12:00:00"
End="2008-04-11T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
<Changes><Proj ID="7e909e1d-5e47-47a1-963c-c6bcb1f029f3">
<Assn ID="5d0c9cab-4453-4242-82d8-638c549c206a">
<PeriodChange><ActualWork Start="2008-04-21T12:00:00"
End="2008-04-21T14:00:00">120000</ActualWork>
</PeriodChange></Assn></Proj></Changes>
(Below is the log from the PWA - you can see it skipped the work on the
14th, but accepted the other two. As an added bonus, for this same task,
other assignments DID accept time that day (Apr 14th), just this particular
assignment did not)
Actual Work On 4/8/2008 → 2h
Actual Work On 4/9/2008 → 3h
Actual Work On 4/10/2008 → 2h
Actual Work On 4/11/2008 → 2h
Actual Work On 4/16/2008 → 2h
Actual Work On 4/17/2008 → 2h
I've tried two different methods to push timephased actual hours into the
plan, and using both methods produces sporadic results with an "unhandled
exception error" on some submissions, and ignoring updates on other
submissions.
This happens using the statusing service, and both the
UpdateStatus(changeXml) method, and the SetAssignmentWorkData(changeXml)
methods. Any thoughts on why this is occurring?