<?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: Writing to a CSV in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Writing-to-a-CSV/m-p/68736#M21341</link>
    <description>Excel needs a ' as a prefix to preserve leading zero in things like phone numbers this has been the case for XLSX for quite a while. for CSV your best option is to use the action "Get Collection As CSV" from the String Utility, this will output the collection to a text data item. When you have the text data item its just a case of using File Management Utility to "Write Text File"&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tim Jarvis-Rouse&lt;BR /&gt;Automation &amp;amp; Integration Consultant&lt;BR /&gt;VANAD GROUP&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Feb 2020 10:06:00 GMT</pubDate>
    <dc:creator>tim.jarvis-rouse</dc:creator>
    <dc:date>2020-02-07T10:06:00Z</dc:date>
    <item>
      <title>Writing to a CSV</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-to-a-CSV/m-p/68734#M21339</link>
      <description>Hello - I am trying to write a collection value to a CSV file. The collection has a field that has a value ex:01014234210015002. I am using MS-Excel VBO actions create instance&amp;gt;openworkbook&amp;gt;writecollection&amp;gt;save&amp;gt;close instance. However, when i go back and open the excel file, the excel is automatically appending 0's at the end to that value (ex:01014234210015000). I tried to use format cell after writing collection to see if i can change the format to text, but that did not help. The formats i tried with format cell are '0' and '@'.&amp;nbsp; I've observed that this behavior only happens in excel if the number value exceeds 15 digits. Please let me know if there are any other ways to solve this issue.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Maneesh Vemula&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-to-a-CSV/m-p/68734#M21339</guid>
      <dc:creator>maneesh.vemula1</dc:creator>
      <dc:date>2020-02-06T20:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Writing to a CSV</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-to-a-CSV/m-p/68735#M21340</link>
      <description>​Hi&lt;BR /&gt;&lt;BR /&gt;You could try populating the values with a leading single quote.&amp;nbsp; you would need to convert to a text data item frist (if not already) but I have found that this often forces Excel to accept the value you input and not apply any formatting to it.&lt;BR /&gt;&lt;BR /&gt;Not guaranteed to work but worth a try.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Humphreys&lt;BR /&gt;Senior Technical Specialist&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Feb 2020 09:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-to-a-CSV/m-p/68735#M21340</guid>
      <dc:creator>PaulHumphreys</dc:creator>
      <dc:date>2020-02-07T09:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: Writing to a CSV</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Writing-to-a-CSV/m-p/68736#M21341</link>
      <description>Excel needs a ' as a prefix to preserve leading zero in things like phone numbers this has been the case for XLSX for quite a while. for CSV your best option is to use the action "Get Collection As CSV" from the String Utility, this will output the collection to a text data item. When you have the text data item its just a case of using File Management Utility to "Write Text File"&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tim Jarvis-Rouse&lt;BR /&gt;Automation &amp;amp; Integration Consultant&lt;BR /&gt;VANAD GROUP&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Feb 2020 10:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Writing-to-a-CSV/m-p/68736#M21341</guid>
      <dc:creator>tim.jarvis-rouse</dc:creator>
      <dc:date>2020-02-07T10:06:00Z</dc:date>
    </item>
  </channel>
</rss>

