none
Remove Actual Row and Line Row in Timesheet RRS feed

  • Question

  • Hi,

    I have a problem to delete an Actual Row or/and Line row to a Timsheet.There no error in VS but in Project after the update.

    I have this email : 

    Your TimesheetUpdate job failed.  Its current state is Failed.  It was 0% complete.  It entered the queue at 08/25/2011 16:09:48.

     

    To get more information about the job failure, please go to Project Web App.  Select Personal Settings from the left menu.  Then select My Queued Jobs.

     

    The errors returned from the queue are as follows:

     Error ID: 26000

     

    Detailed error below - send it to the administrator for more detailed troubleshooting.

     

    <?xml version="1.0" encoding="utf-16"?>

    <errinfo>

      <general>

        <class name="Queue">

          <error id="26000" name="GeneralQueueJobFailed" uid="0157d90d-ae05-4415-983f-5031381d82a7" JobUID="bd7bde37-2ed4-44f9-baf8-ea0f41d28a6b" ComputerName="ComputerName" GroupType="TimesheetUpdate" MessageType="UpdateTimesheetMessage" MessageId="1" Stage="" />

        </class>

      </general>

    </errinfo>

     

    You can do the following:

    1. Try troubleshooting using the error IDs, error XML.

    2. Contact administrator with your jobID (bd7bde37-2ed4-44f9-baf8-ea0f41d28a6b) and error XML.

     

    To turn off these notifications, go to Project Web App, click Personal Settings on the left menu, and then click Manage My Alerts and Reminders.

     

    From this page, you can clear the check box for those notifications you no longer want to receive.

     

    Can you help me please ??

    thank you !

    Micka

    Thursday, August 25, 2011 2:44 PM

All replies

  • There is my code (simplify)

    Guid projectAdminGuid = new Guid("e38038fa-f8ca-47d1-bfd4-6b45b8462972");

     

    TimeSheetClient timesheetClient = new TimeSheetClient("basicHttp_Timesheet");

    QueueSystemClient queueClient = new SvcQueueSystem.QueueSystemClient("basicHttp_QueueSystem");

     

    TimesheetListDataSet timesheetLDS = timesheetClient.ReadTimesheetList(resUID, new DateTime(2011, 1, 1), new DateTime(DateTime.Now.Year, 12, 1), (byte)PSLibrary.TimesheetEnum.ListSelect.AllExisting);

    TimesheetDataSet tds;

    List<TimesheetDataSet.LinesRow> lstLineRow = new List<TimesheetDataSet.LinesRow>();

     

    foreach (TimesheetListDataSet.TimesheetsRow ts in timesheetLDS.Timesheets)

    {

    tds = timesheetClient.ReadTimesheet(ts.TS_UID);

    foreach (TimesheetDataSet.LinesRow ligne in lstLineRow)

    {

    tabActualsRow = ligne.GetActualsRows();

    foreach (TimesheetDataSet.ActualsRow actualRow in tabActualsRow)

    {

    tds.Actuals.RemoveActualsRow(actualRow);

    }

    //tds.Actuals.AcceptChanges();

    tds.Lines.RemoveLinesRow(ligne);

    //tds.Lines.AcceptChanges();

    }

    }

     

    timesheetClient.PrepareTimesheetLine(tds.Headers[0].TS_UID, ref tds, new Guid[] { });

     

    Guid jobUid = Guid.NewGuid();

    timesheetClient.QueueUpdateTimesheet(jobUid, ts.TS_UID, tds);

    Utile.WaitForQueue(queueClient, jobUid);

    Thursday, August 25, 2011 3:02 PM
  • Sorry, it's on Project Server 2010
    Friday, August 26, 2011 2:46 PM