<?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: Importing CSV in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Importing-CSV/m-p/94412#M43821</link>
    <description>Hi Erjola&lt;BR /&gt;&lt;BR /&gt;This is likely because the rows/columns of these values are being auto formatted to numbers and the zeros are being removed by excel. You would probably have to add in an action after the import to format the columns/rows you need to correct. In the excel extended object there is an action called Format Cell which you can use to update these, just add in the range and set the format to number e.g. "0"&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Mar 2022 13:58:00 GMT</pubDate>
    <dc:creator>michaeloneil</dc:creator>
    <dc:date>2022-03-08T13:58:00Z</dc:date>
    <item>
      <title>Importing CSV</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Importing-CSV/m-p/94411#M43820</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;I want to Import text to Excel...And I do it with the action "Import CSV",but it doesn't catch me the values that starts with 0.&lt;BR /&gt;For example in txt file is "0023456789"&amp;nbsp; whereas when I run the "Import&amp;nbsp; CSV"&amp;nbsp; it is "23456789"&lt;/P&gt;
&lt;P&gt;What do I have to change into the code to fix my problem?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Erjola&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Mar 2022 13:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Importing-CSV/m-p/94411#M43820</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-03-08T13:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Importing CSV</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Importing-CSV/m-p/94412#M43821</link>
      <description>Hi Erjola&lt;BR /&gt;&lt;BR /&gt;This is likely because the rows/columns of these values are being auto formatted to numbers and the zeros are being removed by excel. You would probably have to add in an action after the import to format the columns/rows you need to correct. In the excel extended object there is an action called Format Cell which you can use to update these, just add in the range and set the format to number e.g. "0"&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Mar 2022 13:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Importing-CSV/m-p/94412#M43821</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2022-03-08T13:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: Importing CSV</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Importing-CSV/m-p/94413#M43822</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1293"&gt;@ErjolaMema&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;If you look at the Code stage of the &lt;EM&gt;&lt;STRONG&gt;Import CSV&lt;/STRONG&gt;&lt;/EM&gt; action you'll see that it's using the Excel &lt;STRONG&gt;QueryTables&lt;/STRONG&gt; collection to build a new &lt;STRONG&gt;QueryTable&lt;/STRONG&gt; instance using the CSV data. There is a property that you can set on the QueryTable object instance that allows you to specify the data type of each column in the data that's being imported. By default, all columns are set to &lt;STRONG&gt;xlGeneral&lt;/STRONG&gt;. So you could enhance the code in the Code stage to include the definition of your CSV data's column data types.&lt;BR /&gt;&lt;BR /&gt;You can find out more about the property (&lt;STRONG&gt;TextFileColumnDataTypes&lt;/STRONG&gt;) &lt;A href="https://docs.microsoft.com/en-us/office/vba/api/excel.querytable.textfilecolumndatatypes" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. As &lt;A class="user-content-mention" data-sign="@" data-contactkey="ddd4d6a3-af39-4c64-8db4-cdb1d05ed669" data-tag-text="@Michael ONeil" href="https://community.blueprism.com/network/profile?UserKey=ddd4d6a3-af39-4c64-8db4-cdb1d05ed669" data-itemmentionkey="bebecc76-5fa4-4851-945c-6631356f5154"&gt;@Michael ONeil&lt;/A&gt; pointed out, it may be easier to just perform an update on the column after you import the data. Especially if you have a large number of columns.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Mar 2022 14:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Importing-CSV/m-p/94413#M43822</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-03-08T14:05:00Z</dc:date>
    </item>
  </channel>
</rss>

