Blue Prism Product

last person joined: 13 hours ago 

Chat about Blue Prism products
Expand all | Collapse all

Using of CSV Files (Delimitter and Unicode)

Jump to Best Answer
  • 1.  Using of CSV Files (Delimitter and Unicode)

    Posted 11-26-2020 03:09
    Hello Community,
    yesterday I tried to process a CSV file. Therefore I use Utility - File Management - Get CSV Text As Collection. It works well so far, but two points strucked me:

    1. I don't find a way to switch the delimitter. As far as I can see it is only the comma possible. Is there any other way to change the delimitter than swapping characters in the text? My problem is, when I download data from SAP that contains a comma, I choose another delimitter, e.g. tilde. Is there a way to process this data directly without transforming it first. I have already searched in the forum but unfortunately found no approach.

    2. To prepare the CSV I use a text editor which stores the file in UTF8 format with a BOM. As far as I can see it seems not possible to process the BOM with Get CSV Text As Collection. Can really only ASCII/ANSI files be processed? Or is it also possible to use Unicode directly?

    Thanks for answers, hints and tips.
    Best regards
    Stefan

    ------------------------------
    Stefan Schnell
    Senior Systems Engineer at BWI GmbH
    ------------------------------


  • 2.  RE: Using of CSV Files (Delimitter and Unicode)
    Best Answer

    Posted 11-26-2020 09:48

    Hi,

    1. two possible ways:
    a.
    change registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Text
    "Format" = "TabDelimited"
    or
    "Format" = "Delimited(~)"

    b.
    have a "Schema.ini" file in the source folder with the data:
    [your source directory]
    Format=Delimited(~)

    See for more details on schema.ini files there:
    https://docs.microsoft.com/en-us/sql/odbc/microsoft/schema-ini-file-text-file-driver?redirectedfrom=MSDN&view=sql-server-ver15


    2. try to add "CharacterSet=65001;" to the connection string in the code (make a copy of action "Get CSV Text As Collection" )
    instead of
    Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Folder & ";Extended Properties=""Text;HDR=" & HDRString & ";FMT=Delimited;""")
    use
    Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Folder & ";Extended Properties=""Text;HDR=" & HDRString & ";FMT=Delimited;CharacterSet=65001;""")
    see if data are correctly taken as UTF-8




    ------------------------------
    Mindaugas Breskus
    Software engineer
    Swedbank
    Europe/Vilnius
    ------------------------------



  • 3.  RE: Using of CSV Files (Delimitter and Unicode)

    Posted 11-30-2020 03:44
    @Mindaugas Breskus

    Hello Mindaugas,
    thank you very much for your interesting answers.
    I will try that.
    Best regards
    Stefan

    ------------------------------
    Stefan Schnell
    Senior Systems Engineer at BWI GmbH
    ------------------------------



Share


FAQ

Blue Prism is intelligent automation — business-developed, no-code automation that pushes the boundaries of robotic process automation (RPA) to deliver value across any business process in a connected enterprise.

A combination of RPA with expanded cognitive and AI capabilities, Blue Prism is different than other automation technology on the market. With one Blue Prism license, you gain instant access to an already AI equipped digital workforce, along with the tools you need to build and delegate automations. Click here for more information on Blue Prism and Intelligent Automation.
To learn more about how Blue Prism can help your organization and how much it will cost to get started, please Contact our Sales department.
Blue Prism can be downloaded from our customer portal. If you would like to consume or download any material it is necessary to create an account on the Portal. Once you have registered, you can access the download options for Blue Prism here.
Yes! Installed on your own machine and supported by our training materials and product documentation, you can use all the features of the full enterprise product for free with our Blue Prism Trial – giving you the opportunity to learn the basics before moving to a full production implementation. Click here for more information and to download the trial.
Yes! You can access our known issue list for Blue Prism from our Support Portal.
Regardless of your industry, Blue Prism’s Digital Workforce can adhere to strict governance and compliance standards without limiting productivity. Click here for more information on how your industry can benefit from Blue Prism.