Failure submitting task updates using PSI
-
8 iunie 2010 10:13
Hi,
we've developed a C# event handler for Project Server 2007 based on PSI using Visual Studio 2005 (.NET framework 2.0).Similarly to CodePlex EPMTSST project we've successfully managed timesheet data updating task actuals to PM with a single "Save and Submit" on PWA timesheet page.
In short our event use impersonation with statusing web service (statusing.asmx) to import timesheet (ImportTimesheet method) and then submitting timesheet changes (SumitStatus method) back to PM for final authorization.We experienced a problem after submitting the first timesheet assignment.
If we recall timesheet and change a single task actual with a value more than 0 hours, PSI submit call work fine. Conversely if we change task actual to 0 hours PSI seems to ignore that, leaving the previous task assignment unchanged.
This only seems to happen when using PSI submit call to statusing web service.Does anyone know any issue about that?
Thanks.
Toate mesajele
-
8 iunie 2010 22:55Proprietar
Hi Dmin72,
Can you simulate that data flow using the UI and does this work? I'm trying to understand if a timesheet import after an assignment has been changed to zero is broken in all scenarios - as we use the same PSI calls for the normal web pages.
Best regards,
Brian.
Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page- Propus ca răspuns de Christophe FiessingerMicrosoft Employee, Owner 16 iunie 2010 15:46
- Marcat ca răspuns de Brian Smith - MSFTMicrosoft Employee, Moderator 2 iulie 2010 22:32
-
16 iunie 2010 10:56
Hi,
when you get the list of updated guids of the assignments, do you obtain the 0 values?? You have to put in you code something like that:
for (int i = 0; i < timesheetDS.Lines.Count; i++){
if ((timesheetDS.Lines[i].TS_LINE_VALIDATION_TYPE == (int)TimesheetEnum.ValidationType.Verified) &&
(timesheetDS.Lines[i].TS_LINE_ACT_SUM_VALUE >= 0)) //not >0
{
assignments.Add(timesheetDS.Lines[i].ASSN_UID);
}
}Regards,
Jorge.
[ The ultimate for Project Server 2007 || http://www.projecttimesheet.com/about-en.php ]
- Marcat ca răspuns de Brian Smith - MSFTMicrosoft Employee, Moderator 2 iulie 2010 22:32