<?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: Filter collection by duplicates and blank rows in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60630#M14062</link>
    <description>p.s. Len and Trim seem to be the only string functions that BP will recognise in the filter collection expression, doesn't allow others I've tried so far like Left, InStr, Upper etc.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jared Rumball&lt;BR /&gt;Q4 Associates Ltd&lt;BR /&gt;&lt;A href="https://www.q4associates.biz/" target="test_blank"&gt;https://www.q4associates.biz/&lt;/A&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 22 Dec 2021 22:05:00 GMT</pubDate>
    <dc:creator>Jared.Rumball</dc:creator>
    <dc:date>2021-12-22T22:05:00Z</dc:date>
    <item>
      <title>Filter collection by duplicates and blank rows</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60626#M14058</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have 2 collections that I want to filter:&lt;BR /&gt;&lt;BR /&gt;1st collection: I want to filter by the unique value to avoid duplicates. I want to filter by name and number, but I don't know how I should filter by unique value, should I add also the action of collection contains value? I tried but I can do it with just one column and I want to filter both of the columns, name and number to be in line.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2nd collection: I want to filter by the blank rows, when the value of the first column is blank, take the value of the second column.&lt;BR /&gt;In this case, I don't know how I can filter with blank row. I tried the following expression but it didn;t work:&lt;BR /&gt;"Name = ''"&lt;BR /&gt;"Name=" &amp;amp; ""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas on how I should try in this situations?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Madalina Acsinte&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Nov 2020 15:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60626#M14058</guid>
      <dc:creator>MadalinaAcsinte</dc:creator>
      <dc:date>2020-11-12T15:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Filter collection by duplicates and blank rows</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60627#M14059</link>
      <description>Hi Madalina,&lt;BR /&gt;&lt;BR /&gt;For 2nd collection: For Filtering use like this: "Name = ''" (i.e., after = symbol place two single quotes (') and then one double quoted (")) in Collection Manipulation VBO- Filter Collection Action.&lt;BR /&gt;By using this you will get entire rows with Name field is having empty value in to another collection. Using loop stage you can get each row values into calculation stage if required.&lt;BR /&gt;Note: No need to provide empty space to search for empty fields.&lt;BR /&gt;&lt;BR /&gt;For 1st collection: There is no direct VBO/Action to remove duplicate rows in collection. We need to write code to perform this action. But I found one useful discussion form. please refer this it might be useful. &lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MID=201&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer&amp;nbsp;" target="test_blank"&gt;https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MID=201&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please let me know if you need more assistance.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Yeswa Vaibhav Alwar Nerella&lt;BR /&gt;Associate Consultant&lt;BR /&gt;Capgemini&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2020 12:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60627#M14059</guid>
      <dc:creator>Yeswa_Vaibhav_1</dc:creator>
      <dc:date>2020-11-13T12:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Filter collection by duplicates and blank rows</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60628#M14060</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;to remove completely duplicate row,&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30558.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30687iC52301A617D6DD96/image-size/large?v=v2&amp;amp;px=999" role="button" title="30558.png" alt="30558.png" /&gt;&lt;/span&gt;&lt;BR /&gt;and write code in the code stage:&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;utCollection=inCollection.DefaultView.ToTable(true)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And I'm having the same problem (remove rows with duplicate values).&lt;/P&gt;
&lt;P&gt;I try one solution, I wrote it on this page: &lt;A href="https://qiita.com/Sumire_Neko/items/26b9d146ab67eaa7ddcf" target="_blank" rel="noopener"&gt;https://qiita.com/Sumire_Neko/items/26b9d146ab67eaa7ddcf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(This is written in Japanese, so please read it using a translation tool or something)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;To filter blank value, how about using len([Column Name])&amp;lt;1 instead of &lt;SPAN&gt;"Name=" &amp;amp; ""&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;My suggestion may not be helpful, I also want to know how to avoid duplicate values.&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, 16 Nov 2020 09:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60628#M14060</guid>
      <dc:creator>sumire</dc:creator>
      <dc:date>2020-11-16T09:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: Filter collection by duplicates and blank rows</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60629#M14061</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Bit late to the party, but came across this question and was curious if another method for filtering the blank rows would work so tested it and thought I'd reply here in case it's useful to anyone else.&lt;BR /&gt;&lt;BR /&gt;As the collection filter expression is essentially an SQL query that gets applied to the collection contents, you can use some functions &lt;EM&gt;within&lt;/EM&gt; the expression as well. In this case the requirement was to filter the collection for blanks in the Name column. So, another way to check for an empty string in the filter expression is to use the string Length function as shown below.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sample input collection with random blanks in Name column:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30566.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30694i63D06E64904B4CC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="30566.png" alt="30566.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Filter expression using Len function to check Name column:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30567.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30696i868D5CEBD80DED1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="30567.png" alt="30567.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Sample output with only the blanks:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30568.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30697i61A01B6BCA7734FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="30568.png" alt="30568.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Avoids going cross-eyed trying to figure out what combination of double quotes and single quotes you need/have in your filter expression &lt;span class="lia-unicode-emoji" title=":face_savoring_food:"&gt;😋&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jared Rumball&lt;BR /&gt;Q4 Associates Ltd&lt;BR /&gt;&lt;A href="https://www.q4associates.biz/" target="test_blank"&gt;https://www.q4associates.biz/&lt;/A&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2021 21:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60629#M14061</guid>
      <dc:creator>Jared.Rumball</dc:creator>
      <dc:date>2021-12-22T21:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Filter collection by duplicates and blank rows</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60630#M14062</link>
      <description>p.s. Len and Trim seem to be the only string functions that BP will recognise in the filter collection expression, doesn't allow others I've tried so far like Left, InStr, Upper etc.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jared Rumball&lt;BR /&gt;Q4 Associates Ltd&lt;BR /&gt;&lt;A href="https://www.q4associates.biz/" target="test_blank"&gt;https://www.q4associates.biz/&lt;/A&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2021 22:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60630#M14062</guid>
      <dc:creator>Jared.Rumball</dc:creator>
      <dc:date>2021-12-22T22:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: Filter collection by duplicates and blank rows</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60631#M14063</link>
      <description>&lt;P&gt;Ideally I think this happens because the filter expression most likely doesn't recognize the Blue Prism functions but it works as per the Select method argument of Datatable class in C# or VB .NET framework. It should accept values like:&lt;/P&gt;
&lt;P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;CONVERT&lt;/CODE&gt;&amp;nbsp;– converts particular expression to a specified .NET Framework&amp;nbsp;type&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;LEN&lt;/CODE&gt;&amp;nbsp;– gets the length of a string&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;ISNULL&lt;/CODE&gt;&amp;nbsp;– checks an expression and either returns the checked expression or a replacement&amp;nbsp;value&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;IIF&lt;/CODE&gt;&amp;nbsp;– gets one of two values depending on the result of a logical expression&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;TRIM&lt;/CODE&gt;&amp;nbsp;– removes all leading and trailing blank characters like \r, \n, \t, ‚&amp;nbsp;'&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;SUBSTRING&lt;/CODE&gt;&amp;nbsp;– gets a sub-string of a specified length, starting at a specified point in the&amp;nbsp;string&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;AND&lt;/CODE&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;OR&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;NOT&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;&lt;SPAN&gt;LIKE&lt;/SPAN&gt;&lt;/CODE&gt; , &lt;CODE&gt;IN&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;=&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;SUM&lt;SPAN&gt;,&lt;/SPAN&gt;COUNT&lt;SPAN&gt;,&lt;/SPAN&gt;MIN&lt;SPAN&gt;,&lt;/SPAN&gt;MAX&lt;SPAN&gt;,&lt;/SPAN&gt;AVG&lt;SPAN&gt;(average),&lt;/SPAN&gt;STDEV&lt;/CODE&gt;&lt;SPAN&gt;(statistical standard deviation)&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;CODE&gt;VAR&lt;/CODE&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;statistical variance)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
Unfortunately for lower or upper operator we don't have any specific function as such. the workarounds to achieve a comparison without any case sensitivity would be to use the select query in the code stage for the Filter Collection after the expression: &lt;CODE&gt;&lt;SPAN&gt;&amp;lt;DataTable_object&amp;gt;.CaseSensitive = False&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Automation Consultant&lt;BR /&gt;Blueprism 6x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 02:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-collection-by-duplicates-and-blank-rows/m-p/60631#M14063</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2021-12-23T02:14:00Z</dc:date>
    </item>
  </channel>
</rss>

