<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Not a single item</title><link>https://www.aras.com/community/f/development/36293/not-a-single-item</link><description>I wrote down the following to get data from a relationship and insert it in an item type but unfortunately im having the following error 
 I dont see an issue with my logic if someone can take a look i would really appreciate it. 
 Not a single item </description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Not a single item</title><link>https://www.aras.com/community/thread/6368?ContentTypeID=1</link><pubDate>Fri, 12 Feb 2021 08:14:32 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e85245d5-0f6c-49df-8508-e8efd1d04b83</guid><dc:creator>hkhan</dc:creator><description>&lt;p&gt;This return me the correct relationship count&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not a single item</title><link>https://www.aras.com/community/thread/6363?ContentTypeID=1</link><pubDate>Fri, 12 Feb 2021 00:58:21 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3d696814-8541-42c7-b3ac-b7b0d56e0b1d</guid><dc:creator>SunilReddy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the value for count variable it is returning?&lt;/p&gt;
&lt;p&gt;vsyTask=this.getInnovator().newItem(&amp;quot;VSY_Task&amp;quot;,&amp;quot;get&amp;quot;);&lt;br /&gt;vsyTask.setID(relDocid)&lt;br /&gt;vsyTask=vsyTask.apply()&lt;/p&gt;
&lt;p&gt;Int count2=vsyTask.getItemCount():&lt;/p&gt;
&lt;p&gt;Return inn.newError(count2.ToString()):&lt;/p&gt;
&lt;p&gt;Let me know result sir&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not a single item</title><link>https://www.aras.com/community/thread/6362?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 22:24:05 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:1691e0e1-1788-44bd-9086-6505b4de9555</guid><dc:creator>hkhan</dc:creator><description>&lt;p&gt;unfortunately it is giving me same error&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not a single item</title><link>https://www.aras.com/community/thread/6358?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 08:13:58 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c375fbeb-a11c-4d16-a83a-030e6df37259</guid><dc:creator>SunilReddy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Item ecrtask = this.newItem(&amp;quot;ECR Task&amp;quot;, &amp;quot;get&amp;quot;);&lt;br /&gt;ecrtask.setProperty(&amp;quot;source_id&amp;quot;, this.getID());&lt;br /&gt;ecrtask = ecrtask.apply();&lt;br /&gt;int countOfECR=ecrtask.getItemCount();&lt;br /&gt;return this.getInnovator().newError(countOfECR.ToString())&amp;nbsp; ///Try to get Count and see if it is returning Zero records or more&lt;/p&gt;
&lt;p&gt;for(int i=0; i &amp;lt; ecrtask.getItemCount(); i++)&lt;br /&gt;{&lt;br /&gt;Item relDoc = ecrtask.getItemByIndex(i).getRelatedItem();&lt;br /&gt;string title = ecrtask.getProperty(&amp;quot;vsy_title&amp;quot;,&amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;string relDocid = relDoc.getProperty(&amp;quot;id&amp;quot;,&amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;Item vsyTask=this.getInnovator().newItem(&amp;quot;VSY_Task&amp;quot;,&amp;quot;edit&amp;quot;);&lt;br /&gt;vsyTask.setAttribute(&amp;quot;where&amp;quot;,&amp;quot;[VSY_Task].id=&amp;#39;&amp;quot;+relDocid+&amp;quot;&amp;#39;&amp;quot;);&lt;/p&gt;
&lt;p&gt;vsyTask.setProperty(&amp;quot;vsy_title&amp;quot;,title);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;vsyTask=vsyTask.apply();&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not a single item</title><link>https://www.aras.com/community/thread/6357?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 18:33:34 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b0769a26-0f44-4130-bd47-c9c49f245aba</guid><dc:creator>hkhan</dc:creator><description>&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Kindly ignore that I forgot to comment that out&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not a single item</title><link>https://www.aras.com/community/thread/6355?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 11:55:03 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:4e885267-7b4d-4829-87b9-645d24ace17f</guid><dc:creator>SunilReddy</dc:creator><description>&lt;p&gt;Can you please help me to understand&amp;nbsp;&lt;span&gt;relDoc.setProperty(&amp;quot;vsy_title&amp;quot;,title); ...?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>