PSI - Web Service Status - No Results Expected

I am trying to update the status information on assignment via the Statusing (PSI) web service. The problem is that the results are not as expected. I'll try to explain what I'm doing in detail:

Two cases:

1) The resource assignment exists in the assigned tasks. I want to report the results of the work (update status).

2) There is no resource assignment for the assigned tasks. I want to create a job job and report.

I have one task in my project (Autostart, Work fixed). Resource availability for all resources is set at 100%. They all share the same calendar.

  • Name: Task 31 - Work fixed
  • Duration: 12.5 days?
  • Start: Thu 03/14/13
  • End: Tue 02.04.13
  • Resource names: resource 1
  • Work: 100 hours

I first run UpdateStatus with the following ChangeXML

<Changes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Proj ID="a8a601ce-f3ab-4c01-97ce-fecdad2359d9">
    <Assn ID="d7273a28-c038-486b-b997-cdb2450ceef5" ResID="8a164257-7960-4b76-9506-ccd0efabdb72">
      <Change PID="251658250">900000</Change>
    </Assn>
  </Proj>
</Changes>

      

Then I call SubmitStatusForResource

client.SubmitStatusForResource(new Guid("8a164257-7960-4b76-9506-ccd0efabdb72"), null, "auto submit PSIStatusingGateway");

      

The following entry appears in the approval center (which I expected):

Status update; Task 31; Task update; Resource 1; 3/20/2012; 15h; 15%; 85h

Update in project (still looks great):

  • Task name: Task 31 - Work fixed
  • Duration: 12.5 days?
  • Start: Thu 03/14/13
  • End: Tue 02.04.13
  • Resource names: resource 1
  • Work: 100 hours
  • Actual work: 15 hours
  • Remaining work: 85 hours

Then the second case is executed: first I create a new assignment ...

client.CreateNewAssignmentWithWork(
                            sName: Task 31 - Fixed Work,
                            projGuid: "a8a601ce-f3ab-4c01-97ce-fecdad2359d9",
                            taskGuid: "024d7b61-858b-40bb-ade3-009d7d821b3f",
                            assnGuid: "e3451938-36a5-4df3-87b1-0eb4b25a1dab",
                            sumTaskGuid: Guid.Empty,
                            dtStart: 14.03.2013 08:00:00,
                            dtFinish: 02.04.2013 15:36:00,
                            actWork: 900000,
                            fMilestone: false,
                            fAddToTimesheet: false,
                            fSubmit: false,
                            sComment: "auto commit...");

      

Then I call UpdateStatus again:

<Changes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Proj ID="a8a601ce-f3ab-4c01-97ce-fecdad2359d9">
    <Assn ID="e3451938-36a5-4df3-87b1-0eb4b25a1dab" ResID="c59ad8e2-7533-47bd-baa5-f5b03c3c43d6">
      <Change PID="251658250">900000</Change>
    </Assn>
  </Proj>
</Changes>

      

And finally, SubmitStatusForResource again

client.SubmitStatusForResource(new Guid("c59ad8e2-7533-47bd-baa5-f5b03c3c43d6"), null, "auto submit PSIStatusingGateway");

      

This creates the following entry in the center of the claim:

Status update; Task 31 - Fixed work; New reassignment request; Resource 2; 3/20/2012; 15h; one hundred%; 0h

I accept it and update my project:

  • Name: Task 31 - Work fixed
  • Duration: 6.76 days?
  • Start: Thu 03/14/13
  • Finishing: Mon 25.03.13
  • Resource names: resource 1; resource 2
  • Work: 69.05 hrs
  • Actual work: 30 hours
  • Remaining work: 39.05 hrs

And I really don't understand why the new job will be 69.05 hours. The results I expected would be as follows:

  • Name: Task 31 - Work fixed
  • Duration: 6.76 days?
  • Start: Thu 03/14/13
  • Finishing: Mon 25.03.13
  • Resource names: resource 1; resource 2
  • Work: 65 hours
  • Actual work: 30 hours
  • Remaining work: 35 hours

I've spent quite a bit of time trying to figure out how to update the values ​​in order to get the results I want. I would really appreciate some help. It makes me want to pull out my hair!

Thank you in advance

PS: Forgot to say that I am working with MS Project Server 2010 and MS Project Professional 2010

+3


source to share





All Articles