Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

How to: Read a CSV file from a Cloud Storage block

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
PradeepUrala
Former Employee
Former Employee

How to: Read a CSV file from a Cloud Storage block

Last Update:

Apr 28, 2022 2:27:30 AM

Updated By:

PradeepUrala

Created date:

Sep 6, 2021 8:12:21 AM

This article explains how the CSV files can be read from a Cloud Storage connector. Note that this is a generic example that can be used with multiple platforms.

 

  1. Drag and drop a new 'Variable' block and link it to the start block. Add a new string variable by clicking on 'Manage variables'. Once the variable is defined and saved, select the "Add Operation" option in the right rail in the Automation workspace and select the 'Empty' option to empty this variable for every run.
    PrepCSV_1.png

     

    PrepCSV_2.PNG

     

  2. Now we shall retrieve data from a Cloud Storage block.
    Click on the 'Cloud Storage' option on the left rail and Drag, drop the 'Open File' block, and link it to the variable block.
  3. Select this 'Open File' block and click on the 'Connector' parameter on the right rail to select the Connection of your desired Cloud storage (Dropbox in this example). Now enter the path of the CSV file in this storage application.
    Click on the 'Connection' tab and connect to your Dropbox account.
    PrepCSV_3.PNG

     

  4. Drag, Drop, and link the 'Read data from File' Block to the previous block. Select the file and change the 'Mode' to 'CSV'. Enter the appropriate Delimiter and choose the right 'File Encoding' method and the right option for 'Use first row as header' parameters.
    PrepCSV_4.PNG

     

  5. Drag and drop a new 'variable' block inside the 'Read data from file' loop. Select the previously defined string variable and add a new operation to 'Append to'. Select the 'Value' parameter and Select 'Item In Read data from file' and then select the 'Read data from file' object as highlighted in the below screenshot.
    prepCSV_5.PNG

     

     

  6. Now, 'Output' this variable block to read the CSV file from the Cloud storage block.
    prepCSV_6.PNG

     

Related article:

Labels (1)
Contributors
Version history
Last update:
‎2022-04-28 02:27 AM
Updated by: