<?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 Hi … in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88729#M39228</link>
    <description>Hi&amp;nbsp;
str([columnName]) makes the incoming value as text, is there a way to make the incoming value as date?
Thanks.</description>
    <pubDate>Tue, 27 Feb 2018 10:44:00 GMT</pubDate>
    <dc:creator>Ansar_AhmedAtta</dc:creator>
    <dc:date>2018-02-27T10:44:00Z</dc:date>
    <item>
      <title>Data type guessing using OLEDB for Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88723#M39222</link>
      <description>Hi,

I am trying to read data from an excel file using OLEDB connection. My query is fetching the data, but the problem is that it is guessing the datatype of the column on the basis of the content of the data. For example, I have a column named PinCode where some values are pure numerics and other values are strings. When I use OLEDB to extract that, the default datatype of the column is being set as Number.

I have changed the registry value of TypeGuessRows to 0, but it is not helping.

Please suggest ways to solve the issue.</description>
      <pubDate>Tue, 19 Sep 2017 18:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88723#M39222</guid>
      <dc:creator>ShreyansNahar1</dc:creator>
      <dc:date>2017-09-19T18:22:00Z</dc:date>
    </item>
    <item>
      <title>Try a query that casts the</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88724#M39223</link>
      <description>Try a query that casts the data as text. You'll need to look up the exact syntax online but ot will ne something like SELECT CAST([My Number] AS varchar(10)) AS [My Text]</description>
      <pubDate>Wed, 20 Sep 2017 13:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88724#M39223</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2017-09-20T13:20:00Z</dc:date>
    </item>
    <item>
      <title>Hi John Carter,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88725#M39224</link>
      <description>Hi John Carter,
cast is not working...
Internal : Could not execute code stage because exception thrown by code stage: IErrorInfo.GetDescription failed with E_FAIL(0x80004005).</description>
      <pubDate>Wed, 04 Oct 2017 14:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88725#M39224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T14:47:00Z</dc:date>
    </item>
    <item>
      <title>try this one</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88726#M39225</link>
      <description>try this one
SELECT str([PinCode]) AS [New_Column_name] FROM [Sheet_name$]
hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 04 Oct 2017 15:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88726#M39225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T15:47:00Z</dc:date>
    </item>
    <item>
      <title>Hi John, Cast does not work</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88727#M39226</link>
      <description>Hi John, Cast does not work for converting datatype.
Also, Mayur's suggestion works when we have a limited number of columns. If we have a huge list of columns, we will have to write all of them in the query just to convert 1 column's datatype. For example, SELECT A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Str(Q) AS [ConvertedQ], R, T FROM [Sheet1$]. These are just temporary column names (A, B, C, etc.) for example.
Is there any other possibility?</description>
      <pubDate>Fri, 06 Oct 2017 14:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88727#M39226</guid>
      <dc:creator>ShreyansNahar1</dc:creator>
      <dc:date>2017-10-06T14:03:00Z</dc:date>
    </item>
    <item>
      <title>As I said, you needed to look</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88728#M39227</link>
      <description>As I said, you needed to look up the syntax and Mayur kindly provided it. Yes you will have to explicitly state which columns are to be converted, that's just how queries work.</description>
      <pubDate>Fri, 06 Oct 2017 18:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88728#M39227</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2017-10-06T18:30:00Z</dc:date>
    </item>
    <item>
      <title>Hi …</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88729#M39228</link>
      <description>Hi&amp;nbsp;
str([columnName]) makes the incoming value as text, is there a way to make the incoming value as date?
Thanks.</description>
      <pubDate>Tue, 27 Feb 2018 10:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Data-type-guessing-using-OLEDB-for-Excel/m-p/88729#M39228</guid>
      <dc:creator>Ansar_AhmedAtta</dc:creator>
      <dc:date>2018-02-27T10:44:00Z</dc:date>
    </item>
  </channel>
</rss>

