<?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>Easy Way to Find Duplicates</title><link>https://www.aras.com/community/f/development/37149/easy-way-to-find-duplicates</link><description>Good day all. Is there an easy way to identify all of the duplicates in an ItemType? I am trying to move our parts into the OOTB Part ItemType. During the process I discovered that I created duplicate entries. I need to go through and remove them. The</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Easy Way to Find Duplicates</title><link>https://www.aras.com/community/thread/7990?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 16:23:58 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d3b249b8-2ec4-4f69-a998-112a072e906c</guid><dc:creator>Nathan H.</dc:creator><description>&lt;p&gt;Angela,&lt;/p&gt;
&lt;p&gt;Thanks for the push.&amp;nbsp; I was able to get it to work by using the following C# method.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Innovator myInnovator = this.newInnovator();&lt;br /&gt;Item results = myInnovator.applySQL(&lt;/p&gt;
&lt;p&gt;&amp;quot; select count(*) [Count], keyed_name &amp;quot; +&lt;br /&gt;&amp;quot; from [Part] &amp;quot; +&lt;br /&gt;&amp;quot; where is_current=1 &amp;quot; +&lt;br /&gt;&amp;quot; group by keyed_name, item_number &amp;quot; +&lt;br /&gt;&amp;quot; having count(*) &amp;gt;= 2 &amp;quot;&lt;br /&gt;);&lt;/p&gt;
&lt;p&gt;return results;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy Way to Find Duplicates</title><link>https://www.aras.com/community/thread/7988?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 11:00:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:63e188f2-4a17-4a11-8996-1afa8311d46a</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Good question. So far I know Excel and SQL.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For collecting the affected data SQL offers a view more options. You can build your query to just display the duplicates. You can also display the id so you can then build an idlist for deleting the elements.&lt;/p&gt;
&lt;p&gt;But I would be happy to know if somebody else knows a better approach!&lt;/p&gt;
&lt;p&gt;Edit: It should be obvious but I am sure there will be one user that will try to do it: Don&amp;acute;t delete in SQL! Just use it for getting the data!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>