Forum Discussion
Thanks for the response, here is the error message I receive
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault xmlns:af="http://www.aras.com/InnovatorFault">
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>
<![CDATA[Data at the root level is invalid. Line 1, position 1.]]>
</faultstring>
<detail>
<af:legacy_detail>
<![CDATA[Data at the root level is invalid. Line 1, position 1.]]>
</af:legacy_detail>
<af:exception message="Data at the root level is invalid. Line 1, position 1." type="System.Xml.XmlException"/>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Hi
Can you try with below
<AML>
<Item type="re_Requirement" action="add">
<classification>Text</classification>
<global_version>34012</global_version>
<req_complexity>Low</req_complexity>
<req_document_type>8DF7037346A64816B8BBD8700AFCFE15</req_document_type>
<managed_by_id>EA1E67E3DD2340CEA4D49E1670AFBCE0</managed_by_id>
<req_title>Batch load test3</req_title>
<req_priority>Low</req_priority>
<req_risk>Low</req_risk>
<content>Aras Review
Document Control
11977 and 12666| This goes hand and hand
15964 Aras or Scale?
13207 Does Scale need Legacy classification/Remove</content>
</Item>
</AML>
It it doesn't work, try removing special characters in content tags
- gteachout6 years agoIdeator I
Gopikrishnan
I tried your sugguestion and the Requirement item was created without any errors. But the text in the <content> tags was ignored. See sample of content tag data.
<content xml:lang="en"><RequirementText aras:id="0fddf12f26304b82b916cfb8c2f18e22" reqId="C2D3C4A12EC340CF89B6C40A8390FF00" xmlns:aras="http://aras.com/ArasTechDoc" xmlns="http://www.aras.com/REStandard"><Requirement-Info aras:id="f5f3f187e804454796564866249721c5"><Requirement-Chapter aras:id="a4d94950d4bb4dcd8385229a5c3883bd"><aras:emph> </aras:emph></Requirement-Chapter><Requirement-Title aras:id="e15e247fc81a4237ada1608b173d09d3"><aras:emph> </aras:emph></Requirement-Title><Requirement-Number aras:id="66bfd75999174ed0bf2bdf4d6e08cbfe"><aras:emph>Server Assigned</aras:emph></Requirement-Number></Requirement-Info></RequirementText></content>
Any thoughts?
- Gopikrishnan6 years agoAccelerator II
Can you share the data type of content field. Open Item type and check the properties. Also can you run a get query of this item and share the output?
<AML>
<Item type="re_Requirement" action="get" maxRecords="1">
</Item>
</AML>- gteachout6 years agoIdeator I
Gopikrishnan
Here are two sample of the data. The first I created by hand and has the text included. The second was batch loaded and is mssing the desired text.
Thanks for your help
Created by hand
<Item type="re_Requirement" typeId="55515617CB224C90AB5A9DAC0F061C2A" id="B3988DD302C04F579C8602194B593111">
<classification>Text</classification>
<config_id keyed_name="REQ-000000193" type="re_Requirement">B3988DD302C04F579C8602194B593111</config_id>
<content xml:lang="en"><RequirementText xmlns:aras="http://aras.com/ArasTechDoc" xmlns="http://www.aras.com/REStandard" aras:id="649a35dc685143adabc376a821d3edcc" reqId="B3988DD302C04F579C8602194B593111"><Requirement-Info aras:id="4fdbc2cde17c41ad8876c0db95ef67a9"><Requirement-Chapter aras:id="a925172ab3d34b9dbe27c2f9a0f1ee07"><aras:emph></aras:emph></Requirement-Chapter><Requirement-Title aras:id="919336ce4b86461c88108b457a08e9f0"><aras:emph>Batch load test</aras:emph></Requirement-Title><Requirement-Number aras:id="43a72ffa68d0499e9863e7e48a2e88bd"><aras:emph>REQ-000000193</aras:emph></Requirement-Number></Requirement-Info><Text aras:id="09DE62844E2742CB8975221DCF2C1190"><aras:emph xmlns="">Aras ReviewDocument Control
11977 and 12666| This goes hand and hand15964 Aras or NuScale?
13207 Does NuScale need Legacy classification/Remove</aras:emph></Text></RequirementText></content>
<created_by_id keyed_name="Gregg Teachout" type="User">2C48DCD3BFE9492C997F095DB7E07946</created_by_id>
<created_on>2020-04-03T10:36:09</created_on>
<current_state name="Draft" keyed_name="Draft" type="Life Cycle State">AB4D30EE178C4EEAA960FD6ACA24C488</current_state>
<generation>1</generation>
<global_version>34131</global_version>
<id keyed_name="REQ-000000193" type="re_Requirement">B3988DD302C04F579C8602194B593111</id>
<is_current>1</is_current>
<is_released>0</is_released>
<keyed_name>REQ-000000193</keyed_name>
<major_rev>A</major_rev>
<managed_by_id keyed_name="Gregg Teachout" type="Identity">EA1E67E3DD2340CEA4D49E1670AFBCE0</managed_by_id>
<modified_by_id keyed_name="Gregg Teachout" type="User">2C48DCD3BFE9492C997F095DB7E07946</modified_by_id>
<modified_on>2020-04-03T10:37:44</modified_on>
<new_version>0</new_version>
<not_lockable>0</not_lockable>
<permission_id keyed_name="RE Draft Requirement" type="Permission" origPermission="DBC0F24E1FE44C7DB7173090B813F7D9">DBC0F24E1FE44C7DB7173090B813F7D9</permission_id>
<req_complexity>Low</req_complexity>
<req_document_type keyed_name="RE-Standard" type="tp_XmlSchema">8DF7037346A64816B8BBD8700AFCFE15</req_document_type>
<req_priority>Low</req_priority>
<req_risk>Low</req_risk>
<req_title>Batch load test</req_title>
<state>Draft</state>
<item_number>REQ-000000193</item_number>
<itemtype>55515617CB224C90AB5A9DAC0F061C2A</itemtype>
</Item>
created by Batch loaded<Item type="re_Requirement" typeId="55515617CB224C90AB5A9DAC0F061C2A" id="BAB09EE15869453498C8E1DDA01D1361">
<classification>Text</classification>
<config_id keyed_name="REQ-000000198" type="re_Requirement">C2D3C4A12EC340CF89B6C40A8390FF00</config_id>
<content xml:lang="en"><RequirementText xmlns:aras="http://aras.com/ArasTechDoc" xmlns="http://www.aras.com/REStandard" aras:id="0fddf12f26304b82b916cfb8c2f18e22" reqId="C2D3C4A12EC340CF89B6C40A8390FF00"><Requirement-Info aras:id="f5f3f187e804454796564866249721c5"><Requirement-Chapter aras:id="a4d94950d4bb4dcd8385229a5c3883bd"><aras:emph></aras:emph></Requirement-Chapter><Requirement-Title aras:id="e15e247fc81a4237ada1608b173d09d3"><aras:emph>Batch load test4</aras:emph></Requirement-Title><Requirement-Number aras:id="66bfd75999174ed0bf2bdf4d6e08cbfe"><aras:emph>REQ-000000198</aras:emph></Requirement-Number></Requirement-Info><Text aras:id="0A42E1B60EA94B6F8DA8943206A5B02B"><aras:emph xmlns="">Aras Item</aras:emph></Text></RequirementText></content>
<created_by_id keyed_name="Gregg Teachout" type="User">2C48DCD3BFE9492C997F095DB7E07946</created_by_id>
<created_on>2020-04-07T10:09:58</created_on>
<current_state name="Draft" keyed_name="Draft" type="Life Cycle State">AB4D30EE178C4EEAA960FD6ACA24C488</current_state>
<generation>3</generation>
<global_version>34089</global_version>
<id keyed_name="REQ-000000198" type="re_Requirement">BAB09EE15869453498C8E1DDA01D1361</id>
<is_current>1</is_current>
<is_released>0</is_released>
<keyed_name>REQ-000000198</keyed_name>
<major_rev>A</major_rev>
<managed_by_id keyed_name="Gregg Teachout" type="Identity">EA1E67E3DD2340CEA4D49E1670AFBCE0</managed_by_id>
<modified_by_id keyed_name="Gregg Teachout" type="User">2C48DCD3BFE9492C997F095DB7E07946</modified_by_id>
<modified_on>2020-04-07T18:09:11</modified_on>
<new_version>0</new_version>
<not_lockable>0</not_lockable>
<permission_id keyed_name="RE Draft Requirement" type="Permission" origPermission="DBC0F24E1FE44C7DB7173090B813F7D9">DBC0F24E1FE44C7DB7173090B813F7D9</permission_id>
<req_complexity>Low</req_complexity>
<req_document_type keyed_name="RE-Standard" type="tp_XmlSchema">8DF7037346A64816B8BBD8700AFCFE15</req_document_type>
<req_priority>Low</req_priority>
<req_risk>Low</req_risk>
<req_title>Batch load test4</req_title>
<state>Draft</state>
<item_number>REQ-000000198</item_number>
<itemtype>55515617CB224C90AB5A9DAC0F061C2A</itemtype>
</Item>