Create project using PDS: error code 31

T

talikan

Hi folks,

I'm trying to create a basic project using PDS. I'm sending in this
XML:

<Request>
<ProjectCreate>
<AutoPublish>1</AutoPublish>
<Project>
<ProjectName>Test</ProjectName>
<StartDate>01/01/2004</StartDate>
</Project>
</ProjectCreate>
</Request>

The Project Server then replies:

<Reply>
<HRESULT>0</HRESULT>
<STATUS>31</STATUS>
<UserName>Administrator</UserName>
</Reply>

I looked up the error code 31 and it is rsRequestMultiplesInvalid. This
supposedly means that I have duplicate xml lines in my request, but as
you can see I do not. Does anyone have any idea what's going on here? I
can supply more info if needed.
 
T

tonyzink

Hi Talikan --

I see 2 issues with your XML request:

1. The project name should be in the format "Test.Published", rather
than "Test".

2. The start date should be in the format 20040101 (YYYYMMDD), rather
than 01/01/2004.

Here's the updated XML request:

<Request>
<ProjectCreate>
<AutoPublish>1</AutoPublish>
<Project>
<ProjectName>Test.Published</ProjectName>
<StartDate>20040101</StartDate>
</Project>
</ProjectCreate>
</Request>

Good luck!

Tony Zink
========================================
http://www.msprojectreporter.com
http://www.pmreporter.com
http://www.sharepointreporter.com
http://www.msofficereporter.com
http://www.dotnetreporter.com
========================================
 
T

Talikan Kalifros

Thanks for your help Tony. Unfortunately it hasn't seemed to have
helped. I made the changes you've recommended, but we're still getting
the error code 31. Any other ideas? Need any more information?
 

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