<?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 RE: Delete duplicate row in data table in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60609#M14041</link>
    <description>&lt;P&gt;Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="ab9d80e2-18d6-4c31-b377-018757173109" data-tag-text="@Mia Mikela" href="https://community.blueprism.com/network/profile?UserKey=ab9d80e2-18d6-4c31-b377-018757173109" data-itemmentionkey="d7e77dd8-4959-4d7e-bf4c-961e720cb6aa"&gt;@Mia Mikela&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Try this asset in DX&lt;/P&gt;
&lt;P&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/127021/solution/generic-data-table-filter-utility&amp;nbsp;" target="test_blank"&gt;https://digitalexchange.blueprism.com/dx/entry/127021/solution/generic-data-table-filter-utility&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope this asset helps you&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mitsuko &lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 11 Jan 2024 03:37:00 GMT</pubDate>
    <dc:creator>sumire</dc:creator>
    <dc:date>2024-01-11T03:37:00Z</dc:date>
    <item>
      <title>Delete duplicate row in data table</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60608#M14040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have not found a correct answer to this question can you please help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I want to delete duplicate rows across all columns in the table. My table has some blanks rows&lt;/P&gt;
&lt;P&gt;I have seen the removes duplicates function; I have tried but it doesn't work. I delete everything except the headers and the 1st row....&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26629.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26757i48D0B4E7B9D9D7FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="26629.png" alt="26629.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;And, this is the code stage in the object. I don't know about coding so I do not prefer changing any code.&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Dim wb, ws As Object&lt;BR /&gt;Dim excel, sheet, range As Object&lt;/P&gt;
&lt;P&gt;wb = GetWorkbook(handle, workbookname)&lt;BR /&gt;ws = GetWorksheet(handle, workbookname, worksheetname)&lt;/P&gt;
&lt;P&gt;wb.Activate()&lt;BR /&gt;ws.Activate()&lt;BR /&gt;excel = ws.Application&lt;BR /&gt;sheet = excel.ActiveSheet&lt;BR /&gt;range = sheet.Range(Input_Range)&lt;BR /&gt;range.Select()&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ws.Range(Input_Range).RemoveDuplicates (Columns:=New Object() {columnindexes}, Header:= 1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;result = True&lt;/P&gt;
&lt;P&gt;Catch ex As Exception&lt;/P&gt;
&lt;P&gt;&amp;nbsp; result = False&lt;BR /&gt;&amp;nbsp; message = ex.Message&lt;/P&gt;
&lt;P&gt;End Try&lt;/P&gt;
&lt;P&gt;------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;I have an example. The result is not the same as what Excel provide and I don't know why......&lt;/P&gt;
&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="342" style="border-collapse: collapse; width: 257pt;"&gt;&lt;COLGROUP&gt;&lt;COL width="70" style="width: 53pt;" /&gt; &lt;COL width="104" style="width: 78pt;" /&gt; &lt;COL width="168" style="width: 126pt;" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" width="70" style="height: 12.75pt; width: 53pt;"&gt;Pers.No.&lt;/TD&gt;
&lt;TD class="xl65" width="104" style="border-left: none; width: 78pt;"&gt;Personnel Name&lt;/TD&gt;
&lt;TD class="xl65" width="168" style="border-left: none; width: 126pt;"&gt;Item Type&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80000&lt;/TD&gt;
&lt;TD&gt;Joe&lt;/TD&gt;
&lt;TD&gt;E-Mail&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80004&lt;/TD&gt;
&lt;TD&gt;Fred&lt;/TD&gt;
&lt;TD&gt;Supervisor ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80004&lt;/TD&gt;
&lt;TD&gt;Fred&lt;/TD&gt;
&lt;TD&gt;E-Mail&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80004&lt;/TD&gt;
&lt;TD&gt;Fred&lt;/TD&gt;
&lt;TD&gt;Manager ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80006&lt;/TD&gt;
&lt;TD&gt;Sarah&lt;/TD&gt;
&lt;TD&gt;Supervisor ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80006&lt;/TD&gt;
&lt;TD&gt;Sarah&lt;/TD&gt;
&lt;TD&gt;E-Mail&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80004&lt;/TD&gt;
&lt;TD&gt;Fred&lt;/TD&gt;
&lt;TD&gt;Manager ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80006&lt;/TD&gt;
&lt;TD&gt;Sarah&lt;/TD&gt;
&lt;TD&gt;Manager ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80007&lt;/TD&gt;
&lt;TD&gt;Emily&lt;/TD&gt;
&lt;TD&gt;Supervisor ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80007&lt;/TD&gt;
&lt;TD&gt;Emily&lt;/TD&gt;
&lt;TD&gt;E-Mail&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80006&lt;/TD&gt;
&lt;TD&gt;Sarah&lt;/TD&gt;
&lt;TD&gt;Supervisor ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80007&lt;/TD&gt;
&lt;TD&gt;Emily&lt;/TD&gt;
&lt;TD&gt;Manager ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80008&lt;/TD&gt;
&lt;TD&gt;Cameron&lt;/TD&gt;
&lt;TD&gt;Supervisor ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80008&lt;/TD&gt;
&lt;TD&gt;Cameron&lt;/TD&gt;
&lt;TD&gt;E-Mail&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR height="17" style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;80008&lt;/TD&gt;
&lt;TD&gt;Cameron&lt;/TD&gt;
&lt;TD&gt;Manager ID and Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26630.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26761iB73F4D8AD286100F/image-size/large?v=v2&amp;amp;px=999" role="button" title="26630.png" alt="26630.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 01:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60608#M14040</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2024-01-11T01:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: Delete duplicate row in data table</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60609#M14041</link>
      <description>&lt;P&gt;Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="ab9d80e2-18d6-4c31-b377-018757173109" data-tag-text="@Mia Mikela" href="https://community.blueprism.com/network/profile?UserKey=ab9d80e2-18d6-4c31-b377-018757173109" data-itemmentionkey="d7e77dd8-4959-4d7e-bf4c-961e720cb6aa"&gt;@Mia Mikela&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Try this asset in DX&lt;/P&gt;
&lt;P&gt;&lt;A href="https://digitalexchange.blueprism.com/dx/entry/127021/solution/generic-data-table-filter-utility&amp;nbsp;" target="test_blank"&gt;https://digitalexchange.blueprism.com/dx/entry/127021/solution/generic-data-table-filter-utility&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope this asset helps you&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mitsuko &lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jan 2024 03:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60609#M14041</guid>
      <dc:creator>sumire</dc:creator>
      <dc:date>2024-01-11T03:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Delete duplicate row in data table</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60610#M14042</link>
      <description>&lt;P&gt;Hi Mitsuko, thanks for recommending but it's not working for my case.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jan 2024 07:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60610#M14042</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2024-01-11T07:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Delete duplicate row in data table</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60611#M14043</link>
      <description>&lt;P&gt;Hello &lt;A class="user-content-mention" data-sign="@" data-contactkey="ab9d80e2-18d6-4c31-b377-018757173109" data-tag-text="@Mia Mikela" href="https://community.blueprism.com/network/profile?UserKey=ab9d80e2-18d6-4c31-b377-018757173109" data-itemmentionkey="09dddb69-8052-4346-892e-284107f14418"&gt;@Mia Mikela&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;So you want to delete "rows in a table where all the entries are exact matches"?&lt;/P&gt;
&lt;P&gt;In other words, am I correct in understanding that the example you provided, rows 9 and 13 are correct to be deleted?&lt;/P&gt;
&lt;P&gt;I propose to create an action like this:&lt;IMG src="https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F142092%2F67a3ed41-339f-eac8-9288-16ad755c693e.png?ixlib=rb-4.0.0&amp;amp;auto=format&amp;amp;gif-q=60&amp;amp;q=75&amp;amp;s=d97663d38612711e2e9382700574cf9a" alt="フロー.png" data-canonical-src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/142092/67a3ed41-339f-eac8-9288-16ad755c693e.png" class="img-responsive" data-mce-hlimagekey="4fd55c22-3f3f-e246-feeb-f73dad380a67" data-mce-hlselector="#ReplyInline_3d63d3cbb3de4738aada554a6c80ca5d-tinyMce" /&gt;&lt;/P&gt;
&lt;P&gt;The code stage 'Remove Duplicate' contains only one line as follows:&lt;/P&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;outCollection=inCollection.DefaultView.ToTable(true)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Input Argument is 'inCollection'&lt;/P&gt;
&lt;P&gt;Output Argument is 'outCollection'&lt;/P&gt;
&lt;P&gt;This is a simple code stage, so even if you are not familiar with coding, it will be easy to create.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mitsuko &lt;BR /&gt;Asia/Tokyo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jan 2024 10:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60611#M14043</guid>
      <dc:creator>sumire</dc:creator>
      <dc:date>2024-01-15T10:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: Delete duplicate row in data table</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60612#M14044</link>
      <description>&lt;P&gt;&lt;A class="user-content-mention" data-sign="@" data-contactkey="ab9d80e2-18d6-4c31-b377-018757173109" data-tag-text="@Mia Mikela" href="https://community.blueprism.com/network/profile?UserKey=ab9d80e2-18d6-4c31-b377-018757173109" data-itemmentionkey="c10e0b01-7959-45e8-83f1-3627d8e9e789"&gt;@Mia Mikela&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We don't use that VBO so I have never tried out that action but I do know that Excel's array indexing is 1-based. You are using 0-based indexing for the columns. You could give 1-based indexing a try and see how that works for the action.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jan 2024 13:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Delete-duplicate-row-in-data-table/m-p/60612#M14044</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2024-01-15T13:16:00Z</dc:date>
    </item>
  </channel>
</rss>

