PSI CreateProjectFromTemplate

P

ProjectBob

Hi, I am trying to use below method to create a new project

CreateProjectFromTemplate(templateGuid, newProjName)

In the template I have only 1 task, and have filled out all custom field
information. I notice that if I do not assign a resource to the task, when I
call the method I get the PSI errors AssignmentNotFound and
ProjectResourceNotFound. If I assign an enterprise resource to the task I
only get the ProjectResourceNotFound error. Is there a way round this
problem? When using the method with a blank plan it seems to work fine so
I'm thinking its something to do with the template itself?

I am working on the Microsoft EPM2007 VPC image. Thanks for any help.
 
C

Christina Odom

I've actually ran into this issue and what seems to happen is that an
assigment shows up in the project dataset for a resource that I could
never find. I've found no way to resolve this other than creating
another project plan to use as a template.
 
P

ProjectBob

Hi Christina

Thanks for your reply. Any template I make in Project seems to have the
same problems. Looking round people are suggesting that all custom fields
need to be deleted and then the project template created again before the
custom fields are added, but this doesnt seem too practical. The only
templates I have been able to use are ones made programmatically, however as
I understand templates made in code do not contain all custom fields until
opened in Project and saved again which may be why it is working.
 
C

Christina Odom

Bob,

Have you been able to view the project dataset before publishing and
isolate what custom field is causing the problem?
 
P

ProjectBob

Hi Chris/Christina

Thank you for the replies. I will try out the hotfix and see if it resolves
the issue
 
P

ProjectBob

Hi

I have tried the hotfix and unfortunately it does not resolve the issue. In
the end I deleted the Resource Custom Fields and now the method works.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top