Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Can not update Actuals for newly added Assignments - Project 2010

$
0
0

Hello,

I am currently in the process of creating a customized timesheet entry page for project server 2010.

I am using the Statusing client to update actuals for Assignments in the custom timesheet but i have come across the following problem:

When a task is assigned to a user, it will automatically show up in the user's timesheet (which is fine). At this point if I attempt to update/add actual hours to this new task with the Statusing Client it will not be updated. No error message, it just does not get updated. 

After some looking around i realized that at this point the TimesheetLine record does not exist in MSP_Timesheet_Lines or MSP_Timesheet_Actuals Database tables or anywhere else that I can find. However it does show up in the user's timesheet AND shows up in the TimesheetDataSet which is returned by the PSI method Timesheet.ReadTimesheet().

The record does not get added to the MSP_Timesheet_Lines or MSP_Timesheet_Actuals Database tables untill the user goes into their standard timesheet and enters some time in the actuals for the Task and clicks the "Save" button. After doing this the Statusing client will update the Actuals with not problem.

So my problem is that untill a task has been saved from the standard timesheet, it can not be updated by the Statusing client.

The only way that i have been able to do this so far is by manually inserting rows into the MSP_Timesheet_Lines or MSP_Timesheet_Actuals Tables which will allow me to update the Task/Assignment with the Statusing client, but i do not think that is a proper solution as it does not update the reporting DB and I do not know how to properly inset a row into the associated MSP_Timesheet_Act_Audit table.

I have gone through the Timesheet API in the PSI and can not find anything that has helped me. I have tried to use Timesheet.PrepareLine(), but this throws an error when I call QueueUpdateTimesheet (GeneralItemDoesNotExist error).

Can anyone offer some advice on how to properly Add actuals to a newly added assignment using the PSI?

Thanks



Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>