ProjectResource Not Found Error in Project Server RRS feed

  • Question

  • Hi,

    I've been trying to remove a resource from project given the project resource has no assignments using the following code



                PublishedProject pp = projContext.Projects.GetByGuid(new Guid("0dbf7918-5609-e311-b791-1078d24a5e38"));



                DraftProject dp = pp.CheckOut();    

                DraftProjectResource dpr = dp.ProjectResources.GetByGuid(new Guid("e59a4729-0b03-e311-b791-1078d24a5e38"));



                DraftProjectResourceCollection resoColl = dp.ProjectResources;    

                Console.WriteLine(dpr.Id +""+dpr.Name);         




                    QueueJob qJob = dp.Update();

                    qJob = dp.Publish(false);

                    JobState jobState = projContext.WaitForQueue(qJob, 30);

                    if (jobState == JobState.Success)


                        Console.WriteLine("\nResource replacement Successful!");




                        Console.WriteLine("\nThere is a problem in the queue. Timeout is {0} seconds.", 30);  



    when i execute this code, I get an error which says

    PJClientCallableException: ProjectResourceNotFound


    column = RES_UID

    Am i missing something?

    Thanks & Regards,


    Tuesday, September 17, 2013 7:27 AM

All replies

  • Divyang,

    I am not a programmer, but I think the obvious check is to make sure that the resource you are trying to remove is actually in the project scheudle.

    Another item to check is whether the resource is a LOCAL resource instead of an ENTERPRISE resource. 

    Prasanna Adavi,PMP,MCTS,MCITP,MCT

    Wednesday, September 18, 2013 3:03 PM
  • Hi,

    The resource belongs to the project Team and he has no assignments.

    And also he is an enterprise resource.


    Divyang Agrawal

    Tuesday, October 1, 2013 10:08 AM
  • Impressive code--but have you tried opening the project in Project Professional, going to the Resource Sheet view, and deleting the resource from that view?

    • Edited by Edward Hanna Thursday, October 3, 2013 11:30 PM Remove Signature Line
    • Proposed as answer by Edward Hanna Thursday, October 3, 2013 11:31 PM
    Thursday, October 3, 2013 11:30 PM
  • Varun,

    Have you find out the answer?

    I'm having the same issue.

    Thursday, June 26, 2014 2:28 PM