PDS Create project

M

Mike Morgan

Hi,

I'm trying to create a project using PDS but keep on getting error code 1009
which indicates an invalid project ID (rsProjectIDInvalid).

The ProjectCreate method description states "If the default version of the
requested ProjectName does not already exist, the the PDS returns an error."

Has anyone come accross this error?

Mike
 
V

Vincent

Your ProjectName must include version of this project, default is Published,
so if you want to create Project "AAA", send it to PDS using AAA.Published.
If you have this Published Version, you can create Project for other version,
with the same name. Does anybody know how to create new project using other
version than "Published"?
 
I

Iain Carlin

Thanks for the tip Vincent, it provided part of the solution for me.

Mike, the other thing I ended up needing to do to get it to work was to
remove the <TemplateID> tags from the Request xml (the documentation says if
you include <TemplateName> then ID is ignored - that seems to be not quite
correct). So the request XML ended up needing to look like:

<Request>
<ProjectCreate>
<AutoPublish>1</AutoPublish>
<Project>
<ProjectName>CraftProject.Published</ProjectName>
<StartDate>20050524</StartDate> <!-- nb: YYYYMMDD -->
<TemplateName>Craft_Template</TemplateName>
</Project>
</ProjectCreate>
</Request>

Iain Carlin
 
M

Mike Morgan

Thank you Vincent, Iain, that worked a treat.

Iain Carlin said:
Thanks for the tip Vincent, it provided part of the solution for me.

Mike, the other thing I ended up needing to do to get it to work was to
remove the <TemplateID> tags from the Request xml (the documentation says
if
you include <TemplateName> then ID is ignored - that seems to be not quite
correct). So the request XML ended up needing to look like:

<Request>
<ProjectCreate>
<AutoPublish>1</AutoPublish>
<Project>
<ProjectName>CraftProject.Published</ProjectName>
<StartDate>20050524</StartDate> <!-- nb: YYYYMMDD -->
<TemplateName>Craft_Template</TemplateName>
</Project>
</ProjectCreate>
</Request>

Iain Carlin
 

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