<?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: Get CSV as Collection rounds 16 digit number - similar to Excel in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70694#M23299</link>
    <description>Thanks, Dave. This is exactly what I needed/was looking for. Appreciate the quick response.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 23 Oct 2020 19:28:00 GMT</pubDate>
    <dc:creator>diane.sanzone</dc:creator>
    <dc:date>2020-10-23T19:28:00Z</dc:date>
    <item>
      <title>Get CSV as Collection rounds 16 digit number - similar to Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70692#M23297</link>
      <description>I am trying to read a CSV file into a collection The file contains a 16 digit number. If I open the file in notepad, the value is correct. When I read it into BP using the File Utility and "get CSV text as collection", it rounds the number to the nearest 10. If I open the file in Excel, it does the same thing.&amp;nbsp; I am purposefully NOT opening the file in excel prior to loading, but BP still reads it into the collection with the rounding.&amp;nbsp; I know I can do a "read all lines from file" call instead and then parse the value.&amp;nbsp; I'm looking for an answer as to why BP is not reading the text from the file correctly.&lt;BR /&gt;&lt;BR /&gt;Any help you can offer is appreciated.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Oct 2020 17:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70692#M23297</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2020-10-23T17:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get CSV as Collection rounds 16 digit number - similar to Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70693#M23298</link>
      <description>This isn't the fault of Blue Prism. It's OLEDB that is interpreting that field as a number and it has a precision limitation of 15 digits.&lt;BR /&gt;&lt;BR /&gt;I've come across two possible solutions, one of which involves editing the registry settings.&lt;BR /&gt;&lt;BR /&gt;1. Not involving the registry: &lt;A href="https://stackoverflow.com/questions/3595131/i-need-a-workaround-for-excel-guessing-data-types-problem" target="test_blank"&gt;https://stackoverflow.com/questions/3595131/i-need-a-workaround-for-excel-guessing-data-types-problem&lt;/A&gt;&lt;BR /&gt;2. Involving the registry: &lt;A href="https://social.msdn.microsoft.com/Forums/en-US/83bef763-5ba1-4704-a10d-d29ac1d7af78/how-to-tell-excel-driver-not-to-guess-data-type-of-some-columns?forum=adodotnetdataproviders" target="test_blank"&gt;https://social.msdn.microsoft.com/Forums/en-US/83bef763-5ba1-4704-a10d-d29ac1d7af78/how-to-tell-excel-driver-not-to-guess-data-type-of-some-columns?forum=adodotnetdataproviders&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Oct 2020 18:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70693#M23298</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2020-10-23T18:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get CSV as Collection rounds 16 digit number - similar to Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70694#M23299</link>
      <description>Thanks, Dave. This is exactly what I needed/was looking for. Appreciate the quick response.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Oct 2020 19:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70694#M23299</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2020-10-23T19:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get CSV as Collection rounds 16 digit number - similar to Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70695#M23300</link>
      <description>&lt;P&gt;Hello Diane,&lt;BR /&gt;&lt;BR /&gt;Can I know what changes you have made in order to read CSV values right?&lt;/P&gt;
&lt;P&gt;Appreciate your response.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Aneesha Kolli&lt;BR /&gt;RPA Developer&lt;BR /&gt;Education&lt;BR /&gt;America/New_York&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2023 19:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70695#M23300</guid>
      <dc:creator>AneeshaKolli3</dc:creator>
      <dc:date>2023-10-02T19:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get CSV as Collection rounds 16 digit number - similar to Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70696#M23301</link>
      <description>&lt;P&gt;Hi Aneesha,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;This was quite some time ago so I can't explain why I did what I did, but here's what I did. (happy path only)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Read the CSV file using Utility - File Management - Read Lines From File action. I used inputs of my file path, start line 0 and end line 999999999999999 to read the entire file.&amp;nbsp; My output was a collection named CSV Lines&lt;/LI&gt;
&lt;LI&gt;I parsed the first row in the collection using Utility - Strings - Split Text, with inputs of the first row, split Char of "," (a comma inside quotes) and my Collection Field Name of "Column1". I saved that output in a collection called "Header Row"&lt;/LI&gt;
&lt;LI&gt;I looped through the Header Row collection to confirm my required values were there&lt;/LI&gt;
&lt;LI&gt;I then deleted Row 1 from my CSV Lines collection (the header row) because I have a pre-defined collection (called Final Collection) that I use to store the data I need&lt;/LI&gt;
&lt;LI&gt;I looped through the CSV Lines collection, parsing each row, again using the same Split Text command&lt;/LI&gt;
&lt;LI&gt;After splitting each row (within my loop) I add a row to my Final Collection&lt;/LI&gt;
&lt;LI&gt;I then loop the results of the Split text command and set the value to a field in my final collection, tracking each position with a counter I set in my next step&lt;/LI&gt;
&lt;LI&gt;I increment my counter and loop again&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;So long story short - I did not use either of Dave's fixes. If I remember correctly, they didn't fix it for me and I didn't have time to keep troubleshooting the application.&amp;nbsp; I ended up just using BP canned functions to read the data differently and parse it directly.&amp;nbsp; It's not the prettiest or the fastest, but it is stable and functional. This bot runs daily in production and I have yet to see it fail or incorrectly parse the data (but I'm sure it will tomorrow :))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Here's a screenshot of my double loop if it helps explain the description above.&amp;nbsp; I marked the loops with colors to help it match back easier. Hope this helps!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21750.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21896i5508B4F3D27F153F/image-size/large?v=v2&amp;amp;px=999" role="button" title="21750.png" alt="21750.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2023 12:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-CSV-as-Collection-rounds-16-digit-number-similar-to-Excel/m-p/70696#M23301</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2023-10-03T12:50:00Z</dc:date>
    </item>
  </channel>
</rss>

