none
Create project calendar from Enterprise Project Type(EPT) throw PSI? RRS feed

  • Pregunta

  • I try create a project throw PSI using a EPT.

    My code is:

    ProjectSvr.

     

    Project Projecto = new ProjectSvr.Project();

    ProjectSvr.

     

    ProjectDataSet dsProjecto = new ProjectSvr.ProjectDataSet();

    ProjectSvr.

     

    ProjectDataSet.ProjectRow Proj = dsProjecto.Project.NewProjectRow();

     

     

    Guid ProjGuid = Guid.NewGuid();

    Proj.PROJ_UID = ProjGuid;

    Proj.PROJ_NAME = ProjectName ;

    Proj.ProjectOwnerID =

     

    new Guid(Owner) ;

     

     

    //Proj.PROJ_TYPE = 1;

    Proj.PROJ_INFO_START_DATE = StartDate ;

     

     

    //Proj.ENTERPRISE_PROJECT_TYPE_NAME =ProjectType;

     

     

    //Proj.ENTERPRISE_PROJECT_TYPE_UID = new Guid("b7ef3404-eec4-43d6-a6ca-ed4c8e53ed24");

    dsProjecto.Project.AddProjectRow(Proj);

    Projecto.Credentials =

     

    new NetworkCredential(User, Password, Domain);

    Projecto.QueueCreateProject(

     

    Guid.NewGuid(), dsProjecto, false);

    Projecto.QueuePublish(

     

    Guid.NewGuid(), ProjGuid, true, string.Empty);

    I have differents EPT (Sample Prososal, New Calendar) and i need create one project with this EPT, but when publish the new project this cause error: Microsoft.Office.Project.Server.BusinessLayer.Queue.Message:

    • ProjectPublishFailure (23000). Details: id='23000' name='ProjectPublishFailure' uid='dc4b76ff-30b2-4880-9180-1576eb104454' projectuid='178fdbb7-5909-49f7-bd70-199f05f31004' messagetype='Microsoft.Office.Project.Server.BusinessLayer.QueueMsg.GetProjectTypeMessage' messageID='7' stage='' blocking='DontBlock'

    Help me....


    Elicx Villaseca
    jueves, 28 de octubre de 2010 18:18