Web services problem - invalid child element

A forum for discussing new installs or conversions from other software.
andrewd
Posts: 1
Joined: Fri Feb 08, 2013 2:29 pm
Number of Employees: 0
Number of Offices: 0

Web services problem - invalid child element

Postby andrewd » Fri Aug 09, 2013 2:34 pm

I'm using Vision 7 web services and trying to get it to add data. I'm mostly having success, but when I try to add data to certain fields I'm getting a validation error in the response xml. Here's an example of the DataXML I'm sending:

<RECS xmlns="http://deltek.vision.com/XMLSchema" xmlns:xdv="http://tempuri.org/Deltek.Vision.WebServiceAPI.Server/DeltekVisionOpenAPIWebService" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<REC>
<PR name="PR" alias="PR" keys="WBS1,WBS2,WBS3">
<ROW tranType="INSERT">
<WBS1>AGSDTEST</WBS1>
<WBS2></WBS2>
<WBS3></WBS3>
<Name>Testing the name</Name>
<ChargeType>R</ChargeType>
<SubLevel>N</SubLevel>
<Org>FR</Org>
<OpportunityID></OpportunityID>
<ClientConfidential>N</ClientConfidential>
<Status>A</Status>
</ROW>
</PR>
</REC>
</RECS>

So in this case, if I remove the "<status>" line, things work fine. Project gets created no problem. If I leave the status in there though, I get "Validation error on line 3 col 354[CRLF]The element 'ROW' in namespace 'http://deltek.vision.com/XMLSchema' has invalid child element 'Status' in namespace......"

It seems that some fields work and some don't. I've yet to figure out what the pattern is. If I do a GetSchema on the PR table, I see everything listed there...not sure what I'm missing here.

susiew32
Posts: 4
Joined: Thu Jun 26, 2014 11:57 am
Brief Company Description: Engineering
Deltek Vision Version: 7.0
Number of Employees: 400
Company Position: IT Developer
Number of Offices: 0
Year Vision Installed: 2000

Re: Web services problem - invalid child element

Postby susiew32 » Thu Jun 26, 2014 1:58 pm

Did you ever resolve this? I am having the same issues.

Zef
Posts: 1
Joined: Thu Dec 11, 2014 1:59 pm
Deltek Vision Version: 7.0
Number of Employees: 0
Number of Offices: 0

Re: Web services problem - invalid child element

Postby Zef » Thu Dec 11, 2014 6:02 pm

If you put Status in the position corresponding to the database columns then this works - so Status immediately after SubLevel.


Return to “Vision Implementation & Integration”

Who is online

Users browsing this forum: No registered users and 1 guest