EnterpriseFieldUpdate using the EDM Project Server 2003

M

mtb321

I am trying to update the Enterprise Outline Codes and custom fields
using the Service for EDM and am having problems. Due to deadlines I'm
trying to use the EDM instead of writing a full blown application using
the PDS API. It basically doesn't do anything when I try to process
the XML files and just moves the files to the failed directory. No
additional errors are logged in the event viewer. Has anyone been able
to get this to work? I can update the Resource data fine through the
EDM using the ResourceUpdate method, but not the Enterprise Codes using
the EnterpriseFieldUpdate. I'm trying to use the format below but it
just doesn't like it. Is there anything additional that is needed that
Microsoft left off their documentation? Any suggestions or sample code
of this actually working would be greatly be appreciated:

<Request>
<EnterpriseFieldUpdate>
<OutlineCode>
<UID>205521520</UID>
<Name></Name>
<Warpable></Warpable>
<SelectLeafOnly></SelectLeafOnly>
<SelectionRequired></SelectionRequired>
<Nodes>
<Node>
<Description/>
<UID></UID>
<Value></Value>
<Nodes>
<Node>
<Description/>
<UID></UID>
<Value></Value>
</Node>
<Node>
<Description/>
<UID></UID>
<Value></Value>
</Node>
</Nodes>
</Node>
</Nodes>
<Masks>
<Mask>
<Level></Level>
<Type></Type>
<Length></Length>
<Separator></Separator>
</Mask>
</Masks>
</OutlineCode>
<CustomFields>
<CustomField>
<FieldID></FieldID>
<FieldName></FieldName>
<SelectionRequired></SelectionRequired>
<Default></Default>
<ValuelistInUse></ValuelistInUse>
<ValuelistSortOrder></ValuelistSortOrder>
<ValueList>
<ValueItem>
<Value></Value>
<Description></Description>
<Phonetic></Phonetic>
</ValueItem>
<ValueItem>
<Value></Value>
<Description></Description>
</Phonetic></Phonetic>
</ValueItem>
</ValueList>
</CustomField>
</ CustomFields>
</EnterpriseFieldUpdate>
</Request>
 
M

magic321

The actual error is always a <Status> 7 </Status> which in the Error
List is: rsNodeNameInvalid = 7 "The node name is not recognized as
valid syntax for the request."

Regardless what I put into the XML file according to the structure in
the documentation. Any idea's?

Thanks!
 
M

magic321

Error is always <Status>7</Status> rsNodeNameInvalid = 7 "The node name
is not recognized as valid syntax for the request."
 
P

Peter Theill

Error is always <Status>7</Status> rsNodeNameInvalid = 7 "The node name
is not recognized as valid syntax for the request."
<<

You get this error if your request contains tab characters. Using this
code might work for you:

XmlDocument d = new XmlDocument();
d.LoadXml(request);

Now use "d.InnerXml" in your request to PDSBIZ.

Rgd,
Peter Theill
 

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