This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - NASH Error: Root Element is missing

xgecko - Wednesday, September 25, 2013 1:31 PM:

I am trying to run a NASH import.  After logging in and entering the following in the XML window I get an error indicating that the root element is missing.  I cannot find anything on this error suggesting how to resolve it.

Input:

<AML>
<Item type='Part' action='add'><item_number>104004</item_number><name>DO-160 Temperature & Altitude</name><description>DO-160 Temperature & Altitude;Test Spec;;</description></Item>
</AML>

Output:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="www.aras.com/.../faultcode><faultstring><![CDATA[Root element is missing.]]></faultstring><detail><af:legacy_detail><![CDATA[Root element is missing.]]></af:legacy_detail><af:exception message="Root element is missing." type="System.Xml.XmlException"/></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>



mendenaresh1357 - Thursday, September 26, 2013 4:51 AM:

 

I think the Issue is with the special character '&'. Can you try replacing  '&' with '&amp;'.

 

Regards,

Naresh Mende.



madmax33 - Friday, December 20, 2013 6:48 AM:

Hey,

I am getting the same error. did you find a solution?



Eric Domke - Thursday, September 26, 2013 8:18 AM:

Also, your attributes should use double quotes, not single quotes.  Therefore, the AML should read:

<AML>

  <Item type="Part" action="add">

    <item_number>104004</item_number>

    <name>DO-160 Temperature &amp; Altitude</name>

    <description>DO-160 Temperature &amp; Altitude;TestSpec;;</description>

  </Item>

</AML>



xgecko - Friday, December 20, 2013 8:09 AM:

Yes.  See the above thread.  The quotes were my problem.



madmax33 - Thursday, December 26, 2013 5:22 AM:

Hi xgecko

Thanks for the prompt reply. I check the quotes and they are correct for me.  I am still facing the problem.

Can you tell me which version are you using?

Regards