Stefano_Atzeni - Wednesday, February 12, 2014 10:10 AM:
Hi, i'm new in aras, and i have tried to write my first method.
this is the simple code:
Item myItem = this.newItem("Help Ticket", "add");
myItem.setProperty("subject", "Printer Jam");
return myItem.apply();
When I click on run server method, it show me this error message:
Aras.Server.Core.ItemNotFoundException
<SOAP-ENV:Envelope xmlns:SOAP-ENV="schemas.xmlsoap.org/.../">
<SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="www.aras.com/InnovatorFault">
<faultcode>SOAP-ENV:Server.ItemNotFoundException</faultcode>
<faultstring>
<![CDATA[Aras.Server.Core.ItemNotFoundException]]>
</faultstring>
<detail>
<af:legacy_detail>
<![CDATA[Aras.Server.Core.ItemNotFoundException]]></af:legacy_detail><af:exception message="Aras.Server.Core.ItemNotFoundException" type="Aras.Server.Core.ItemNotFoundException"/><af:item type="Method" name="NewItemObject"/></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Some suggestion?
Thank you.
zahar - Wednesday, February 12, 2014 10:25 AM:
Did you create ItemType that called "Help Ticket"?
If not try something easy with existing ItemType "Part":
Item itm = this.getInnovator().newItem("Part", "add");
itm.setProperty("item_number", "testPN");
return itm.apply();
Stefano_Atzeni - Wednesday, February 12, 2014 10:28 AM:
Thank you for reply.
Yes the issue was that. I have created the itemtype help ticket and now works.
Great!