<?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 Which action to use if I want to read excel file in different data types of columns. in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Which-action-to-use-if-I-want-to-read-excel-file-in-different/m-p/68123#M20728</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;As we've seen generally Read Excel actions provide all data columns as Text data type.&lt;BR /&gt;&lt;BR /&gt;But I've some columns which are in Date format, DateTime format, Number format, etc, and in the collection, I want that column datatype as Date, DateTime, Number, Text, etc as per data present in that excel column.&lt;BR /&gt;&lt;BR /&gt;Whatever I tried so far gives all columns as text format so Is there any action that assign data type accordingly?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Tejaskumar Darji&lt;BR /&gt;Sr. RPA Consultant-Automation Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 27 Sep 2021 12:59:00 GMT</pubDate>
    <dc:creator>Tejaskumar_Darji</dc:creator>
    <dc:date>2021-09-27T12:59:00Z</dc:date>
    <item>
      <title>Which action to use if I want to read excel file in different data types of columns.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Which-action-to-use-if-I-want-to-read-excel-file-in-different/m-p/68123#M20728</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;As we've seen generally Read Excel actions provide all data columns as Text data type.&lt;BR /&gt;&lt;BR /&gt;But I've some columns which are in Date format, DateTime format, Number format, etc, and in the collection, I want that column datatype as Date, DateTime, Number, Text, etc as per data present in that excel column.&lt;BR /&gt;&lt;BR /&gt;Whatever I tried so far gives all columns as text format so Is there any action that assign data type accordingly?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Tejaskumar Darji&lt;BR /&gt;Sr. RPA Consultant-Automation Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Which-action-to-use-if-I-want-to-read-excel-file-in-different/m-p/68123#M20728</guid>
      <dc:creator>Tejaskumar_Darji</dc:creator>
      <dc:date>2021-09-27T12:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: Which action to use if I want to read excel file in different data types of columns.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Which-action-to-use-if-I-want-to-read-excel-file-in-different/m-p/68124#M20729</link>
      <description>Hi Tejas,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In my view, there is no inbuilt action to differentiate the data type while getting excel data into a collection.&lt;BR /&gt;&lt;BR /&gt;But you achieve this in different ways.&lt;BR /&gt;&lt;BR /&gt;1. You need to create a predefined collection (with fields and data types defined) and read the excel data column-wise instead of all columns at a time. Later you can merge the collections to get the final collection.&lt;BR /&gt;&lt;BR /&gt;2. Another workaround but it depends on the process,- If you want to loop through the collection data, the same can be done directly on excel(by getting the last row and incrementing rows) even you can manipulate it there itself.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Murali&lt;BR /&gt;RPA Consultant&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Sep 2021 13:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Which-action-to-use-if-I-want-to-read-excel-file-in-different/m-p/68124#M20729</guid>
      <dc:creator>krishna.kodimurali9</dc:creator>
      <dc:date>2021-09-27T13:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Which action to use if I want to read excel file in different data types of columns.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Which-action-to-use-if-I-want-to-read-excel-file-in-different/m-p/68125#M20730</link>
      <description>Hello Tejaskumar,&lt;BR /&gt;Just a suggestion. Why not use a global code stage to type cast data?&lt;BR /&gt;And using that function in code?&lt;BR /&gt;&lt;BR /&gt;Link 1: &amp;nbsp;&lt;A href="https://stackoverflow.com/questions/20562462/convert-datatable-to-list-of-generic-type" target="_blank" rel="noopener"&gt;c# - Convert datatable to list of generic type - Stack Overflow&lt;/A&gt;&lt;BR /&gt;Link 2: &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/system.data.datacolumn.datatype?view=net-5.0" target="_blank" rel="noopener"&gt;DataColumn.DataType Property (System.Data) | Microsoft Docs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ved Sengupta&lt;BR /&gt;RPA Developer&lt;BR /&gt;Deloitte India (Offices of the US)&lt;BR /&gt;Bangalore | INDIA&lt;BR /&gt;*If you find this post helpful mark it as best answer*&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Sep 2021 10:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Which-action-to-use-if-I-want-to-read-excel-file-in-different/m-p/68125#M20730</guid>
      <dc:creator>VedSengupta</dc:creator>
      <dc:date>2021-09-28T10:02:00Z</dc:date>
    </item>
  </channel>
</rss>

