<?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 Either [ ] or ` `. Basic SQLâ€¦ in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63826#M16704</link>
    <description>Either [ ] or ` `. Basic SQL notation.</description>
    <pubDate>Mon, 06 May 2019 19:37:00 GMT</pubDate>
    <dc:creator>AmiBarrett</dc:creator>
    <dc:date>2019-05-06T19:37:00Z</dc:date>
    <item>
      <title>Filter Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63819#M16697</link>
      <description>I am having issue filtering a collection that has a column name with space. I get the following error:

Internal : Could not execute code stage because exception thrown by code stage: Syntax error: Missing operand after 'Name' operator.

&amp;nbsp;

I have attached picture for reference.</description>
      <pubDate>Mon, 10 Dec 2018 21:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63819#M16697</guid>
      <dc:creator>savanpatel</dc:creator>
      <dc:date>2018-12-10T21:17:00Z</dc:date>
    </item>
    <item>
      <title>Try enclosing First Name in…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63820#M16698</link>
      <description>Try enclosing First Name in single quotes as well.</description>
      <pubDate>Mon, 10 Dec 2018 21:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63820#M16698</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2018-12-10T21:25:00Z</dc:date>
    </item>
    <item>
      <title>Using single quotes does not…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63821#M16699</link>
      <description>Using single quotes does not work, it does get rid of the error message but it does not give the right output result.</description>
      <pubDate>Mon, 10 Dec 2018 21:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63821#M16699</guid>
      <dc:creator>savanpatel</dc:creator>
      <dc:date>2018-12-10T21:27:00Z</dc:date>
    </item>
    <item>
      <title>Try making a new action with…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63822#M16700</link>
      <description>&lt;P&gt;Try making a new action with this as the code stage. I replaced that action with this one for ease of use long ago.&lt;/P&gt;
&lt;P&gt;Inputs: &lt;BR /&gt;Collection - Collection &lt;BR /&gt;FilterString - Text &lt;BR /&gt;Column - Text&lt;/P&gt;
&lt;P&gt;Outputs: &lt;BR /&gt;Sorted Collection - Text &amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-csharp"&gt;String filter &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;FilterString&lt;SPAN class="token operator"&gt;!=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; 
&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	filter &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;`&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;Column&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;`&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""&lt;/SPAN&gt; like &lt;SPAN class="token string"&gt;'%""+FilterString+""%'&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	filter &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;`&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;Column&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;`&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;''&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
DataView dv &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Collection&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DefaultView&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
dv&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;RowFilter &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; filter&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
Sorted_Collection &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; dv&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToTable&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 21:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63822#M16700</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2018-12-10T21:45:00Z</dc:date>
    </item>
    <item>
      <title>Hello,
Try using in this…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63823#M16701</link>
      <description>Hello,
Try using in this format in Filter Attribute in ""Utility - Collection Manipulation"" ,
as
Coll1.First Name = ""White Shark""
and check it.
Good Luck.</description>
      <pubDate>Mon, 07 Jan 2019 17:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63823#M16701</guid>
      <dc:creator>SukeshManthena</dc:creator>
      <dc:date>2019-01-07T17:19:00Z</dc:date>
    </item>
    <item>
      <title>Enclose that column nameâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63824#M16702</link>
      <description>Enclose that column name within square brackets.</description>
      <pubDate>Fri, 03 May 2019 10:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63824#M16702</guid>
      <dc:creator>sai_bhargavaraj</dc:creator>
      <dc:date>2019-05-03T10:09:00Z</dc:date>
    </item>
    <item>
      <title>I had this problem manyâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63825#M16703</link>
      <description>I had this problem many times until I found a simple and easy solution.
When filtering with VB.net codes the column name is typically put in brackets.
"[Column Name] LIKE 'text you want to filter'"
The [ ] will allow you to use a space. Make sure Quotation marks are used before the [ as blue prism will think you are referring to a data item if you don't.
Â&amp;nbsp;</description>
      <pubDate>Sun, 05 May 2019 23:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63825#M16703</guid>
      <dc:creator>ChristianLobosc</dc:creator>
      <dc:date>2019-05-05T23:57:00Z</dc:date>
    </item>
    <item>
      <title>Either [ ] or ` `. Basic SQLâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63826#M16704</link>
      <description>Either [ ] or ` `. Basic SQL notation.</description>
      <pubDate>Mon, 06 May 2019 19:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63826#M16704</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2019-05-06T19:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Either [ ] or ` `. Basic SQLâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63827#M16705</link>
      <description>&lt;P&gt;​Hi all,&lt;BR /&gt;&lt;BR /&gt;any Idea why ? wildcard is not working?&lt;/P&gt;
&lt;P&gt;eg.: [Area] like '04? AB'&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pavel Král&lt;BR /&gt;RPA Specialist Senior&lt;BR /&gt;MANN+HUMMEL Service s.r.o&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2019 07:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63827#M16705</guid>
      <dc:creator>PavelKrál</dc:creator>
      <dc:date>2019-07-10T07:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Either [ ] or ` `. Basic SQLâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63828#M16706</link>
      <description>I guess I haven't ever tried using a wildcard in the middle of a filter expression. You'd think I'd need that at some point. Go figure. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Blue Prism is using the Select method on the datatable to filter the results (that is, if you go all the way into the code stage), and it looks like the Select method only supports wildcards at the beginning or end of the text such as '*this*'. &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #7a7a7a; cursor: text; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I suppose the other issue here is that the Select method doesn't seem to support ? as a wildcard. I haven't looked into whether there's another single character to use instead, but at least when used in Blue Prism, the ? is read as part of the string.&lt;BR /&gt;&lt;BR /&gt;Y&lt;/SPAN&gt;ou may want to use LINQ instead. It seems to be the go-to when performing queries on datatables (collections) in Blue Prism beyond what the existing actions provide.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2019 10:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63828#M16706</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-07-10T10:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Either [ ] or ` `. Basic SQLâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63829#M16707</link>
      <description>&lt;P&gt;I was just thinkig it has same possibilities like show on this page: &lt;A href="https://www.w3schools.com/sql/sql_wildcards.asp" target="test_blank"&gt;https://www.w3schools.com/sql/sql_wildcards.asp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;i have very small knowledge about SQL, but i will try to find some solution. I will check the LINQ. It will come handy to have a better possibilites for filtering. At least in my projects &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pavel KrÃ¡l&lt;BR /&gt;RPA Specialist&lt;BR /&gt;MANN+HUMMEL Service s.r.o&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2019 11:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63829#M16707</guid>
      <dc:creator>PavelKrál</dc:creator>
      <dc:date>2019-07-10T11:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Either [ ] or ` `. Basic SQLâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63830#M16708</link>
      <description>&lt;P&gt;You could always use another code stage to execute a custom query against it.&lt;BR /&gt;&lt;BR /&gt;Inputs:&lt;BR /&gt;Collection - Collection&lt;BR /&gt;Query - Text&lt;/P&gt;
&lt;P&gt;Outputs:&lt;BR /&gt;Sorted Collection - Collection&lt;/P&gt;
&lt;PRE class="language-csharp"&gt;DataTable temp &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Collection&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Clone&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
DataRow&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt; dr &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Collection&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Select&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Query&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;foreach&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;DataRow row &lt;SPAN class="token keyword"&gt;in&lt;/SPAN&gt; dr&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;
	temp&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ImportRow&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;
Sorted_Collection &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; temp&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;​&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ami Barrett&lt;BR /&gt;Lead RPA Software Developer&lt;BR /&gt;Solai &amp;amp; Cameron&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2019 16:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63830#M16708</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2019-07-10T16:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Either [ ] or ` `. Basic SQLâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63831#M16709</link>
      <description>Because DataTable is not a real database and wildcards in the middle just doesn't work as documented.&lt;BR /&gt;You can use something like this sometimes:&amp;nbsp;&lt;SPAN&gt;[Area] like '04%' and&amp;nbsp;[Area] like '% AB'&lt;BR /&gt;But keep in mind this is not the same thing.&lt;BR /&gt;&lt;BR /&gt;Custom action filtering rows one by one with regex condition would work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrey Kudinov&lt;BR /&gt;Project Manager&lt;BR /&gt;MobileTelesystems PJSC&lt;BR /&gt;Europe/Moscow&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Aug 2019 10:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Filter-Collection/m-p/63831#M16709</guid>
      <dc:creator>AndreyKudinov</dc:creator>
      <dc:date>2019-08-14T10:37:00Z</dc:date>
    </item>
  </channel>
</rss>

