Use PSI to create project with template ,WBS disappear? RRS feed

  • Question

  • Dear All:

           Now I have one question about PSI.

           First of all ,  I create a project template .In this template,I define the WBS code mask.


           When I open the project professional and create a project by this template. The Project’s WBS code mask is same as template.

            But when I use the PSI to create a project by the template. The The Project’s WBS code mask is empty:(  


          I find the same information about defining the WBS code mask by PSI in Microsoft website.


           So, I just want to know whether this is normal And  Whether there is a solution to define the WBS code mask.

           This is my source code

    ProjectWebSvc.Project projectSvc = new ProjectWebSvc.Project();
    projectSvc.Credentials = CredentialCache.DefaultCredentials;
    projectSvc.CreateProjectFromTemplate(new Guid("7F64BFF4-5D98-450C-928B-BA5DE654AADD"), "TestWBSProjectByPSI");
    catch(Exception ex)
    {  }

            is there some good ideas for me?



    Monday, May 28, 2012 12:41 AM

All replies

  • Hi Peardong--

    CreateProjectFromTemplate gets a ProjectDataSet from the project template in the Draft database, creates a new ProjectDataSet, and changes the project summary task name to the requested project name. It then adds all of the DataTable rows to the new ProjectDataSet, except assignment dates, and then creates a new project with a different GUID. Since PSI cannot assogn a work breakdown structure (WBS) code mask to task as a limitaion

    Please see PSI limitations:What the PSI Does Not Do

    When you are using a Task WBS, You can get the new project from template if you create a new project using the MS project instead of PSI project cerate method. Even if you set the Task WBS codes in PSI, It ignores the same when you open the project from MS project.

    See more info by Brian's blog post (though it's for PS2007, Same stands for PS2010)

    Hope that helps.

    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog:

    Monday, May 28, 2012 5:52 AM
  • Hi Amit,

           Thanks for your help!

           So there is no way to do it:(  I need look for other method.



    Tuesday, May 29, 2012 2:48 AM