<?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: Import CSV with delimitator &amp;quot;;&amp;quot; in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60832#M14229</link>
    <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/53669"&gt;@SAINNATHSURAY&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;FYI - We just posted version 6.10.3 of the MS Excel VBO to the Digital Exchange. The &lt;STRONG&gt;Import CSV&lt;/STRONG&gt; action now support custom delimiters. However, duplicate header titles have not been addressed yet.&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, 29 Mar 2022 01:47:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2022-03-29T01:47:00Z</dc:date>
    <item>
      <title>Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60824#M14221</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I have a downloaded CSV file SAP ,file can be opened in excel but columns clubbed ";" So I need to diliminate the columns &lt;BR /&gt;&lt;BR /&gt;1)I have tried to change code in existing object "Import CSV"&lt;BR /&gt;excel vbo action and change delimiter in the code stage to ";"&lt;BR /&gt;.TextFileTabDelimiter = False&lt;BR /&gt;.TextFileSemicolonDelimiter = False &amp;lt; change to True&lt;BR /&gt;.TextFileCommaDelimiter = True &amp;lt; change to False&lt;BR /&gt;.TextFileSpaceDelimiter = False&lt;BR /&gt;&lt;BR /&gt;But I am getting an error "Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2.I have tried another way &lt;BR /&gt;Read all text from file" is in utility-file management&lt;BR /&gt;"get csv as collection" is in utility-strings&lt;BR /&gt;&lt;BR /&gt;unfortunately my CSV have duplicate columns so it is throwing error in this methode&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;SAINNATH SURAY&lt;BR /&gt;Business process Lead&lt;BR /&gt;TATA CONSULTANCY SERVICE&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Mar 2022 08:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60824#M14221</guid>
      <dc:creator>SAINNATHSURAY</dc:creator>
      <dc:date>2022-03-28T08:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60825#M14222</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/53669"&gt;@SAINNATHSURAY&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;What exactly do you want to do? "translate" the CSV file into a Excel file? Or get it as a collection to work with?&lt;BR /&gt;&lt;BR /&gt;I guess the problem is with the duplicate column names.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See you in the community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Mar 2022 09:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60825#M14222</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-03-28T09:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60826#M14223</link>
      <description>&lt;P&gt;Dear folks @&amp;nbsp;BluePrism:&lt;BR /&gt;&lt;BR /&gt;1. This issue was already handled last week in an old thread from 2021 that was not closed. Here it is again, now as a duplicate in a new thread. Can you do something about this?​&lt;BR /&gt;&lt;BR /&gt;2. There seem to be a lotta questions about getting CSV data into a collection within a process. This all works fine and dandy as long as ​the robot has region settings matching the divider in the incoming file. If not, the 'Get CSV Text As Collection' does not work as expected. While some have the possibility to require the sender of the CSV to use the preferred settings, others will have to work with whatever has been sent. With the CSV already in use in 1983 and being short for Comma Separated Values (wikipedia), still, in many a case, a semicolon or perhaps other dividers are used instead of a comma. Wouldn't it be nice to adjust the BP VBO so that it accepts whatever divider you specify? And no, I wouldn't prefer a DX solution as not everybody has the possibility to download, implement and use these.&lt;BR /&gt;&lt;BR /&gt;3. While you're at it: duplicate headers seem to also be a case of concern to more than a few. Surely that could be handled in a nicer way that exception?&lt;/P&gt;
​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Mar 2022 10:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60826#M14223</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-03-28T10:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60827#M14224</link>
      <description>I've added an item to our backlog to look at including support for a configurable delimiter to the MS Excel VBOs &lt;STRONG&gt;Import CSV&lt;/STRONG&gt; action. However, you'd still have issues with the your duplicate column names.&lt;BR /&gt;&lt;BR /&gt;Cheers,&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>Mon, 28 Mar 2022 11:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60827#M14224</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-03-28T11:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60828#M14225</link>
      <description>&amp;lt;thumbsup&amp;gt;Backlog addition: Great, thanks! &amp;lt;/thumbsup&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Perhaps duplicate headers could automatically be provided with some sort of random suffix? Same goes for headers with a . (or other illegal chars), where the illegal char could either be replaced or removed? Although we for the header issue already today have a workaround to ignore headers.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Mar 2022 11:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60828#M14225</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-03-28T11:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60829#M14226</link>
      <description>Hello, &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/53669"&gt;@SAINNATHSURAY&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;So, a few things come to mind.&amp;nbsp; The first, and most direct is that &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/33683"&gt;@AmiBarrett&lt;/a&gt; posted some custom code a [long?] while back that allows Text-to-Collections using a delimiter other than a comma (although, I suppose you could use it for true comma-delimited if you wanted).&amp;nbsp; We have incorporated that code, or a slight variant, into a few processes within our organization.&amp;nbsp; I tried to find the thread to connect it directly here, but was not successful.&amp;nbsp; If your source file is consistently semi-colons, then that would be my recommendation.&lt;BR /&gt;&lt;BR /&gt;If that does not seem feesible, I have another solution, which is tedious but works:&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;Bring the text into a source collection with NO valid delimiters (so each line is whole to itself)&lt;/LI&gt;
&lt;LI&gt;Loop through the line of the source collection
&lt;OL&gt;
&lt;LI&gt;'InStr' to find your next delimiter location
&lt;OL&gt;
&lt;LI&gt;Take the value to the left of your new found delimiter and pass that to your target collection&lt;/LI&gt;
&lt;LI&gt;Replace the same value, and the delimiter you just used, in the orginal value&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Repeat to the end of the line&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Repeat to the end of collection&lt;/LI&gt;
&lt;/OL&gt;
This is certainly not rocket science, by any stretch, but, in my case, I had a text file which had three separate delimiters in the line--I just needed to keep track of where I was in the line to determine which value to look for.&lt;BR /&gt;&lt;BR /&gt;The second part, about the duplicate headers can be easily addressed if your source file is consistent in its data presentation.&amp;nbsp; In this case, I would predefine the columns (names and data types) in the target collection, bring in the data as if it had no headers, and then delete the first line (AKA, 'The Headers') before moving on.&amp;nbsp; I have done this using a very explicitly defined collection, and I have also looped through a reference file to add the columns to the collection to create the framework.&amp;nbsp; The 'advantage' of the reference file is that if your source column changes/evolves, you can quickly make the changes in the reference file.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The last part, is that would be nice to have a "blessed" Text-to-Collections action that allows for a definable delimiter.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;Red&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Robert "Red" Stephens&lt;BR /&gt;Application Developer, RPA&lt;BR /&gt;Sutter Health&lt;BR /&gt;Sacramento, CA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Mar 2022 14:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60829#M14226</guid>
      <dc:creator>stepher</dc:creator>
      <dc:date>2022-03-28T14:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60830#M14227</link>
      <description>&lt;P&gt;I'm having trouble finding the post as well. I've got a couple VBOs posted to GitHub that should cover this though.&lt;/P&gt;
&lt;P&gt;If you've got a CSV file, here's my Extended Collections object:&lt;BR /&gt;&lt;A href="https://github.com/AmaliaKalio/Nephthis-BP-VBO---Extended-Collections-Tools" target="test_blank"&gt;https://github.com/AmaliaKalio/Nephthis-BP-VBO---Extended-Collections-Tools&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it's text in a pre-existing data item, try Internal CSV:&lt;BR /&gt;&lt;A href="https://github.com/AmaliaKalio/Nephthis-BP-VBO---Internal-CSV" target="test_blank"&gt;https://github.com/AmaliaKalio/Nephthis-BP-VBO---Internal-CSV&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ami Barrett&lt;BR /&gt;RPA Blue Prism SME&lt;BR /&gt;Karsun Solutions&lt;BR /&gt;Plano TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Mar 2022 15:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60830#M14227</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2022-03-28T15:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60831#M14228</link>
      <description>&lt;P&gt;Duplicate headers can be addressed one of two ways.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Import the CSV where headers is set to 'False' - this will generate unique column names (F1, F2, F3, etc). If you need the actual headers to be the column names, you can modify the data in the appropriate cell and use 'Set Column Names from First Row'&lt;/LI&gt;
&lt;LI&gt;Alternatively, you can load the CSV into a text data item and replace the text where you know it's going to be an issue. For example, if your header row looked like "F1;F2;F3;F1;F5", you could do a find and replace for the second occurrence of "F1;" and set it to "F4;". It should import fine from there.
&lt;OL&gt;
&lt;LI&gt;To get this to work in Blue Prism, you'd need to find the position of the first occurrence, trim the characters leading up to that InStr position + 2, then use InStr on the new text data to find the first full occurrence within the resulting string. (This should be the second iteration within the original.)&lt;/LI&gt;
&lt;LI&gt;Or if you're lucky enough for it to be a duplicate of the very first column, you could search for ";F1;" and replace that, since the first entry wouldn't have a leading delimiter.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ami Barrett&lt;BR /&gt;Solution Architect&lt;BR /&gt;Karsun Solutions&lt;BR /&gt;Plano TX&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Mar 2022 16:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60831#M14228</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2022-03-28T16:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Import CSV with delimitator ";"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60832#M14229</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/53669"&gt;@SAINNATHSURAY&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;FYI - We just posted version 6.10.3 of the MS Excel VBO to the Digital Exchange. The &lt;STRONG&gt;Import CSV&lt;/STRONG&gt; action now support custom delimiters. However, duplicate header titles have not been addressed yet.&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, 29 Mar 2022 01:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Import-CSV-with-delimitator-quot-quot/m-p/60832#M14229</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-03-29T01:47:00Z</dc:date>
    </item>
  </channel>
</rss>

