<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get Non Repeating Records from Collection (Review all Columns) in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-Non-Repeating-Records-from-Collection-Review-all-Columns/m-p/97214#M45287</link>
    <description>Hi!&lt;BR /&gt;&lt;BR /&gt;I have this action where i have a collection like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35324.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35384i28085E5443426DE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="35324.png" alt="35324.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;And expect and ouptut like this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35325.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35388i39E520616EDEC72A/image-size/large?v=v2&amp;amp;px=999" role="button" title="35325.png" alt="35325.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;This is my code stage:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35326.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35389iE5E5A4E92076DC3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="35326.png" alt="35326.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35327.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35391i3CC7E669914FC09B/image-size/large?v=v2&amp;amp;px=999" role="button" title="35327.png" alt="35327.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35328.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35390i603BE2BBBA5180D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="35328.png" alt="35328.png" /&gt;&lt;/span&gt;&lt;BR /&gt;How can I get it to review all columns to identify repeated records?&lt;BR /&gt;&lt;BR /&gt;Up to now the Output is this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35329.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35392i626C66A7B2CFC6E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="35329.png" alt="35329.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;</description>
    <pubDate>Fri, 03 Feb 2023 15:58:47 GMT</pubDate>
    <dc:creator>GabrielaEsquive</dc:creator>
    <dc:date>2023-02-03T15:58:47Z</dc:date>
    <item>
      <title>Get Non Repeating Records from Collection (Review all Columns)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Non-Repeating-Records-from-Collection-Review-all-Columns/m-p/97214#M45287</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;I have this action where i have a collection like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35324.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35384i28085E5443426DE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="35324.png" alt="35324.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;And expect and ouptut like this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35325.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35388i39E520616EDEC72A/image-size/large?v=v2&amp;amp;px=999" role="button" title="35325.png" alt="35325.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;This is my code stage:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35326.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35389iE5E5A4E92076DC3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="35326.png" alt="35326.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35327.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35391i3CC7E669914FC09B/image-size/large?v=v2&amp;amp;px=999" role="button" title="35327.png" alt="35327.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35328.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35390i603BE2BBBA5180D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="35328.png" alt="35328.png" /&gt;&lt;/span&gt;&lt;BR /&gt;How can I get it to review all columns to identify repeated records?&lt;BR /&gt;&lt;BR /&gt;Up to now the Output is this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35329.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35392i626C66A7B2CFC6E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="35329.png" alt="35329.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:58:47 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Non-Repeating-Records-from-Collection-Review-all-Columns/m-p/97214#M45287</guid>
      <dc:creator>GabrielaEsquive</dc:creator>
      <dc:date>2023-02-03T15:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get Non Repeating Records from Collection (Review all Columns)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Non-Repeating-Records-from-Collection-Review-all-Columns/m-p/97215#M45288</link>
      <description>Hi Gabriela,&lt;BR /&gt;&lt;BR /&gt;I'd suggest to make a new column in the same collection. In the new column you combine all data from the other columns, eg &lt;EM&gt;Elena48Red&lt;/EM&gt; and &lt;EM&gt;Miguel28Orange&lt;/EM&gt;. You will end up getting two rows with &lt;EM&gt;Ray58Blue&lt;/EM&gt;. Then you proceed to remove any rows that are duplicates in the new column. When this is done, you can remove the new column. All of this can be done in BP without the need of a Code stage. &lt;BR /&gt;&lt;BR /&gt;No doubt, someone else will shortly post the code to accomplish the same. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Happy Coding!&lt;BR /&gt;----------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden</description>
      <pubDate>Mon, 06 Feb 2023 10:57:14 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Non-Repeating-Records-from-Collection-Review-all-Columns/m-p/97215#M45288</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2023-02-06T10:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get Non Repeating Records from Collection (Review all Columns)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Non-Repeating-Records-from-Collection-Review-all-Columns/m-p/97216#M45289</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="e803085b-93dc-4296-8be0-01865dcb7c23" data-tag-text="@Gabriela Esquivel" href="https://community.blueprism.com/network/profile?UserKey=e803085b-93dc-4296-8be0-01865dcb7c23" data-itemmentionkey="d53f4098-2d83-4e56-a092-f04b1aa13768"&gt;@Gabriela Esquivel&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;You can remove the Field Name input parameter and modify your code in the following way:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Dim uniqueRows = (From row In Input_Collection.AsEnumerable()
                  Group row By a = String.Join(", ", row.ItemArray) Into grp = Group
                  Where grp.Count = 1
                  Select grp.First()).ToList()

Output_Collection = uniqueRows.CopyToDataTable()​&lt;/CODE&gt;&lt;/PRE&gt;
​&lt;BR /&gt;&lt;BR /&gt;This way your grouping would be independent of any specific column and will take all column fields as grouping parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Devneet Mohanty&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Intelligent Process Automation Consultant&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Blue Prism 7x Certified Professional&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Website:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://devneet.github.io/" target="_blank" rel="noopener"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Email:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="mailto:devneetmohanty07@gmail.com" target="_blank" rel="noopener"&gt;devneetmohanty07@gmail.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------&lt;/SPAN&gt;</description>
      <pubDate>Wed, 08 Feb 2023 06:30:29 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Non-Repeating-Records-from-Collection-Review-all-Columns/m-p/97216#M45289</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2023-02-08T06:30:29Z</dc:date>
    </item>
  </channel>
</rss>

