<?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 - Data type mismatch in criteria expression in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Data-type-mismatch-in-criteria-expression/m-p/116504#M52202</link>
    <description>&lt;P&gt;By default OLEDB determines the datatype of each column based on the first few (10 I think) rows. However this guesswork can be a problem if the first rows are not representative of the whole column. For example, if the file has 100 rows and in column A rows 1-10 are numeric and 11-100 are alphanumeric, OLEDB will assume the column contains only numeric data. This isn't a BP thing, it's how OLEDB works and it's a common frustration for developers.&lt;/P&gt;&lt;P&gt;Your query assumes&amp;nbsp;&lt;SPAN&gt;[Resp (3&amp;amp;4)]&amp;nbsp;is text, and the error is saying it can't compare the data type it has assumed for that column with an empty string (&amp;lt;&amp;gt; ''). Have a look at the data in the top rows of that that column.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 16:22:28 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2024-10-24T16:22:28Z</dc:date>
    <item>
      <title>OLEDB - Data type mismatch in criteria expression</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Data-type-mismatch-in-criteria-expression/m-p/116499#M52200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to fetch data from an Excel using OLEDB with below query but getting an error -&amp;nbsp;&lt;EM&gt;Could not execute code stage because exception thrown by code stage: Data type mismatch in criteria expression.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;SELECT [No],[Resp (3&amp;amp;4)] FROM [Call Sheet$] WHERE [Resp (3&amp;amp;4)] &amp;lt;&amp;gt; ''&lt;/P&gt;&lt;P&gt;Columns: No,&amp;nbsp;Resp (3&amp;amp;4)&lt;/P&gt;&lt;P&gt;Sheet Name:&amp;nbsp;Call Sheet&lt;/P&gt;&lt;P&gt;Can anyone help with possible reasons of this error and suggestions to resolve it.&lt;/P&gt;&lt;P&gt;Note: Similar query with other column working fine.&lt;/P&gt;&lt;P&gt;Eg:&amp;nbsp;SELECT [No],[Resp 2] FROM [Call Sheet$] WHERE [Resp 2] &amp;lt;&amp;gt; ''&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dipin Dev P&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 14:52:45 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Data-type-mismatch-in-criteria-expression/m-p/116499#M52200</guid>
      <dc:creator>DipinDevP</dc:creator>
      <dc:date>2024-10-24T14:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: OLEDB - Data type mismatch in criteria expression</title>
      <link>https://community.blueprism.com/t5/Product-Forum/OLEDB-Data-type-mismatch-in-criteria-expression/m-p/116504#M52202</link>
      <description>&lt;P&gt;By default OLEDB determines the datatype of each column based on the first few (10 I think) rows. However this guesswork can be a problem if the first rows are not representative of the whole column. For example, if the file has 100 rows and in column A rows 1-10 are numeric and 11-100 are alphanumeric, OLEDB will assume the column contains only numeric data. This isn't a BP thing, it's how OLEDB works and it's a common frustration for developers.&lt;/P&gt;&lt;P&gt;Your query assumes&amp;nbsp;&lt;SPAN&gt;[Resp (3&amp;amp;4)]&amp;nbsp;is text, and the error is saying it can't compare the data type it has assumed for that column with an empty string (&amp;lt;&amp;gt; ''). Have a look at the data in the top rows of that that column.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 16:22:28 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/OLEDB-Data-type-mismatch-in-criteria-expression/m-p/116504#M52202</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2024-10-24T16:22:28Z</dc:date>
    </item>
  </channel>
</rss>

