<?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: Oledb if query in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74366#M26971</link>
    <description>Try str([Column 1] )=''&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Daulat Ram&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Mar 2021 16:16:00 GMT</pubDate>
    <dc:creator>DaulatRam2</dc:creator>
    <dc:date>2021-03-25T16:16:00Z</dc:date>
    <item>
      <title>Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74359#M26964</link>
      <description>Hello guys,&amp;nbsp;&lt;BR /&gt;just a quick explanation about Oledb..&lt;BR /&gt;I need to check if i've at least an empty value inside the row of an excel file included in a where clause.&lt;BR /&gt;FOR EXAMPLE:&lt;BR /&gt;Select * FROM Table1 WHERE invoice = [InvoiceID]&amp;nbsp;&amp;nbsp;&lt;BR /&gt;If exist at least one row from this query, i need to check if one of Column1, Column2 or Column3 is empty. Can i implement this check in the where clause? For ex. WHERE invoice = [InvoiceID]&amp;nbsp; AND [Column1] != '' AND [Column2] != '' AND [Column3] != ''&amp;nbsp;&lt;BR /&gt;I'll tried but it not works.. Any advice?&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 11:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74359#M26964</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-25T11:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74360#M26965</link>
      <description>You write that it does not work. What does not work? Which stage action is at fault? What is the exception it throws?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Try this:&lt;/STRONG&gt;&lt;BR /&gt;Assuming you have the connection string correct, done a connect and an open, including some wait stages, you might want to try and format the Excel Sheetname as [Table1$] instead of plain Table1.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;SQL:&lt;/STRONG&gt;&lt;BR /&gt;Your statement:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;WHERE invoice = [InvoiceID]&amp;nbsp; AND [Column1] != '' AND [Column2] != '' AND [Column3] != ''&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;...will return the row with the matching InvoiceID where comumns 1 and 2 and 3 &lt;SPAN style="text-decoration: underline;"&gt;all must have a value.&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;This does not seem to match what you describe. &lt;BR /&gt;&lt;BR /&gt;You can put the check in the SQL but you can also only select on the InvoiceID and then have BP validate the collection that was returned.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The SQL might look like this:&lt;BR /&gt;&lt;SPAN&gt;WHERE invoice = [InvoiceID]&amp;nbsp; AND ([Column1] = '' OR [Column2] = '' OR [Column3] = '')&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;...this would require at least one of the columns 1, 2 or 3 to be empty.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On the other hand is your description&amp;nbsp; "&lt;SPAN&gt;one of Column1, Column2 or Column3 is empty&lt;/SPAN&gt;" a bit fuzzy, in which case I'd like you to ask you to describe better what it is you want. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74360#M26965</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2021-03-25T12:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74361#M26966</link>
      <description>Select * From [Table1$] Where [&lt;SPAN&gt;invoiceID]= "1234"&amp;nbsp; AND ([Column1] &amp;lt;&amp;gt;'' OR [Column2] &amp;lt;&amp;gt;'' OR [Column3] &amp;lt;&amp;gt;'')&amp;nbsp;&lt;BR /&gt;will filter for InvoiceID and at least one of Columns having value&lt;BR /&gt;&lt;BR /&gt;Table1: is the name of the Sheet in excel file where you are checking for Invoice ID&lt;BR /&gt;invoiceID: is the name of the column in Table1 sheet within excel file.&lt;BR /&gt;1234: example Invoice ID you can use a data item stage as well instead of hardcoded value.&lt;BR /&gt;Column1,Column2,Column3 are names of the column&lt;BR /&gt;&lt;BR /&gt;cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Daulat Ram&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74361#M26966</guid>
      <dc:creator>DaulatRam2</dc:creator>
      <dc:date>2021-03-25T12:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74362#M26967</link>
      <description>Thanks, i need to check if i have empty values in 1 number column [column1] and in 2 string columns [column2] and [column3].&lt;BR /&gt;Which is the syntax in that case&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74362#M26967</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-25T15:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74363#M26968</link>
      <description>Thanks Paul,&lt;BR /&gt;sorry if I have forgotten some things.&lt;BR /&gt;The problem with my query is that some columns are "Number", not only "String" type.&lt;BR /&gt;The second question is, in your opinion, is better to do with some queries or with a multi decision, where I go to check if the empty is empty or not? And in case throw a business exception?&lt;BR /&gt;Thx&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74363#M26968</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-25T15:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74364#M26969</link>
      <description>Basically it will remain the same for empty columns&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Daulat Ram&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74364#M26969</guid>
      <dc:creator>DaulatRam2</dc:creator>
      <dc:date>2021-03-25T15:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74365#M26970</link>
      <description>&lt;span class="lia-inline-image-display-wrapper" image-alt="15278.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15442iB3148B625CBDED50/image-size/large?v=v2&amp;amp;px=999" role="button" title="15278.png" alt="15278.png" /&gt;&lt;/span&gt;I have this message when i try to perform OR [Column1] = ''&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74365#M26970</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-25T16:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74366#M26971</link>
      <description>Try str([Column 1] )=''&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Daulat Ram&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74366#M26971</guid>
      <dc:creator>DaulatRam2</dc:creator>
      <dc:date>2021-03-25T16:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74367#M26972</link>
      <description>I have a syntax error &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74367#M26972</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-25T16:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74368#M26973</link>
      <description>&lt;P&gt;Hi Vrat,&lt;/P&gt;
&lt;P&gt;Have you tried with IS NULL like &lt;SPAN&gt;[Column1] IS NULL&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="ms-editor-squiggler" style="color: initial; font: initial; font-feature-settings: initial; font-kerning: initial; font-optical-sizing: initial; font-variation-settings: initial; forced-color-adjust: initial; text-orientation: initial; text-rendering: initial; -webkit-font-smoothing: initial; -webkit-locale: initial; -webkit-text-orientation: initial; -webkit-writing-mode: initial; writing-mode: initial; zoom: initial; place-content: initial; place-items: initial; place-self: initial; alignment-baseline: initial; animation: initial; appearance: initial; aspect-ratio: initial; backdrop-filter: initial; backface-visibility: initial; background: initial; background-blend-mode: initial; baseline-shift: initial; block-size: initial; border-block: initial; border: initial; border-radius: initial; border-collapse: initial; border-end-end-radius: initial; border-end-start-radius: initial; border-inline: initial; border-start-end-radius: initial; border-start-start-radius: initial; inset: initial; box-shadow: initial; box-sizing: initial; break-after: initial; break-before: initial; break-inside: initial; buffered-rendering: initial; caption-side: initial; caret-color: initial; clear: initial; clip: initial; clip-path: initial; clip-rule: initial; color-interpolation: initial; color-interpolation-filters: initial; color-rendering: initial; color-scheme: initial; columns: initial; column-fill: initial; gap: initial; column-rule: initial; column-span: initial; contain: initial; contain-intrinsic-size: initial; content: initial; content-visibility: initial; counter-increment: initial; counter-reset: initial; counter-set: initial; cursor: initial; cx: initial; cy: initial; d: initial; display: block; dominant-baseline: initial; empty-cells: initial; fill: initial; fill-opacity: initial; fill-rule: initial; filter: initial; flex: initial; flex-flow: initial; float: initial; flood-color: initial; flood-opacity: initial; grid: initial; grid-area: initial; height: 0px; hyphens: initial; image-orientation: initial; image-rendering: initial; inline-size: initial; inset-block: initial; inset-inline: initial; isolation: initial; letter-spacing: initial; lighting-color: initial; line-break: initial; list-style: initial; margin-block: initial; margin: initial; margin-inline: initial; marker: initial; mask: initial; mask-type: initial; max-block-size: initial; max-height: initial; max-inline-size: initial; max-width: initial; min-block-size: initial; min-height: initial; min-inline-size: initial; min-width: initial; mix-blend-mode: initial; object-fit: initial; object-position: initial; offset: initial; opacity: initial; order: initial; origin-trial-test-property: initial; orphans: initial; outline: initial; outline-offset: initial; overflow-anchor: initial; overflow-wrap: initial; overflow: initial; overscroll-behavior-block: initial; overscroll-behavior-inline: initial; overscroll-behavior: initial; padding-block: initial; padding: initial; padding-inline: initial; page: initial; page-orientation: initial; paint-order: initial; perspective: initial; perspective-origin: initial; pointer-events: initial; position: initial; quotes: initial; r: initial; resize: initial; ruby-position: initial; rx: initial; ry: initial; scroll-behavior: initial; scroll-margin-block: initial; scroll-margin: initial; scroll-margin-inline: initial; scroll-padding-block: initial; scroll-padding: initial; scroll-padding-inline: initial; scroll-snap-align: initial; scroll-snap-stop: initial; scroll-snap-type: initial; shape-image-threshold: initial; shape-margin: initial; shape-outside: initial; shape-rendering: initial; size: initial; speak: initial; stop-color: initial; stop-opacity: initial; stroke: initial; stroke-dasharray: initial; stroke-dashoffset: initial; stroke-linecap: initial; stroke-linejoin: initial; stroke-miterlimit: initial; stroke-opacity: initial; stroke-width: initial; tab-size: initial; table-layout: initial; text-align: initial; text-align-last: initial; text-anchor: initial; text-combine-upright: initial; text-decoration: initial; text-decoration-skip-ink: initial; text-indent: initial; text-overflow: initial; text-shadow: initial; text-size-adjust: initial; text-transform: initial; text-underline-offset: initial; text-underline-position: initial; touch-action: initial; transform: initial; transform-box: initial; transform-origin: initial; transform-style: initial; transition: initial; user-select: initial; vector-effect: initial; vertical-align: initial; visibility: initial; -webkit-app-region: initial; border-spacing: initial; -webkit-border-image: initial; -webkit-box-align: initial; -webkit-box-decoration-break: initial; -webkit-box-direction: initial; -webkit-box-flex: initial; -webkit-box-ordinal-group: initial; -webkit-box-orient: initial; -webkit-box-pack: initial; -webkit-box-reflect: initial; -webkit-highlight: initial; -webkit-hyphenate-character: initial; -webkit-line-break: initial; -webkit-line-clamp: initial; -webkit-mask-box-image: initial; -webkit-mask: initial; -webkit-mask-composite: initial; -webkit-perspective-origin-x: initial; -webkit-perspective-origin-y: initial; -webkit-print-color-adjust: initial; -webkit-rtl-ordering: initial; -webkit-ruby-position: initial; -webkit-tap-highlight-color: initial; -webkit-text-combine: initial; -webkit-text-decorations-in-effect: initial; -webkit-text-emphasis: initial; -webkit-text-emphasis-position: initial; -webkit-text-fill-color: initial; -webkit-text-security: initial; -webkit-text-stroke: initial; -webkit-transform-origin-x: initial; -webkit-transform-origin-y: initial; -webkit-transform-origin-z: initial; -webkit-user-drag: initial; -webkit-user-modify: initial; white-space: initial; widows: initial; width: initial; will-change: initial; word-break: initial; word-spacing: initial; x: initial; y: initial; z-index: initial;"&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Analyst&lt;BR /&gt;Accenture&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2021 04:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74368#M26973</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2021-03-26T04:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Oledb if query</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74369#M26974</link>
      <description>Hi Vrat,&lt;BR /&gt;&lt;BR /&gt;When extracting data from an Excel to a Collection, you generally have two options:&lt;BR /&gt;1. Use OleDB with SQL&lt;BR /&gt;2. Action 'Get Worksheet As Collection' on the 'MS Excel VBO'&lt;BR /&gt;&lt;BR /&gt;With the OleDB option you can at the same time select what data you want to have. With the 'Get Worksheet As...' option you get all data and have to filter your collection later to remove the data you do not want to have.&lt;BR /&gt;&lt;BR /&gt;I only use the OleDB option for Excels that contain a large number of rows and a lot of selection criteria. The reason for this is that filtering large collections with the 'Filter Count Collection' (the action I use) does not work so smooth as you might think. It does not handle large numbers or rows well and ends up in OutOfMemory exceptions. As a result of that, I divide my collection in lesser collection s and filter each small collection instead of the big one. This works nice but is not fast.&lt;BR /&gt;&lt;BR /&gt;After a recent battle with OleDB, I concluded that even OleDB does not handle large number of rows well and crashes. A general BP problem perhaps? So even when working with OleDB I split up the original Excel in smaller Excels and run OleDB on each smaller Excel to get the results I need. Selecting rows with OleDB is always fast.&lt;BR /&gt;&lt;BR /&gt;What is a &lt;EM&gt;large&lt;/EM&gt; Excel and what are &lt;EM&gt;many&lt;/EM&gt; rows?&lt;BR /&gt;Depends from case to case. In my case, 15k rows for a 10-column Excel was the upper-limit to avoid errors in OleDB. SO I split my 60k+ row Excel in 15k Excel files that I feed in a loop to OleDB. That worked fine and fast.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Remark:&lt;BR /&gt;When posting your question as specific as you did, with a description and the SQL you use, make sure to describe more exactly what you want, as any answer will only be as good as the question. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2021 07:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Oledb-if-query/m-p/74369#M26974</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2021-03-26T07:18:00Z</dc:date>
    </item>
  </channel>
</rss>

