PDS <ProjectResourcesCreate> doesn't seem to work

K

Kevin Newman

I am attempting to add resources to an enterprise project from the Enterprise
Resource Pool using the <ProjectResourcesCreate> method in PDS. The following
is the syntax of my request:

<Request>
<ProjectResourcesCreate>
<AutoPublish>1</AutoPublish>
<ProjectName>1330482-AEC-New Madrid LP Inspection.Published</ProjectName>
<Resources>
<Resource>
<Name>103111</Name>
</Resource>
<Resource>
<Name>103121</Name>
</Resource>
+++++++ There are a few more resources. I just shortened it for the example
+++++
</Resources>
</ProjectResourcesCreate>
</Request>

After it runs I receive the following result showing that the request was
successful

<Reply>
<HRESULT>0</HRESULT>
<STATUS>1006</STATUS>
<UserName>knewman</UserName>
<ProjectResourcesCreate>
<Project>
<ProjectName>1330482-AEC-New Madrid LP
Inspection.Published</ProjectName>
<ProjectID>43</ProjectID>
</Project>
</ProjectResourcesCreate>
</Reply>

However when I check out the project and look at the resource sheet there is
nothing there. The method doesn't seem to work for any of my projects, which
are all created using the <ProjectCreate> method.

Any help would be appreciated. We are attempting to go live with Project
Server next week, and this is a major fly in the ointment.
 
K

Kevin Newman

I figured it out but it is weird. It seems that the associated project must
be checked out in order for this method to work correctly. So if I want to
add resources to all 50 of the projects that I have created I have to open
them first then run the "ProjectCreateResource" method, then save them to the
server? Seems like it defeats the purpose of automating the input.
 

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