The Qlik OneDrive Web Storage Provider Connector lets you connect seamlessly with your remote data files, allowing you to stream data directly into your Qlik Sense app. With the OneDrive connector, select and load data from your OneDrive account just as you would from a local file.
Connecting to a OneDrive account
The OneDrive Connector is built into Qlik Sense and is available on Qlik Sense SaaS and Qlik Sense Enterprise on Windows. You can access the connector through Add data and the Data load editor.
- From Add data, select OneDrive from the list of data connectors.
- From the Data load editor, click Create new connection and select OneDrive.
The first step to create a OneDrive connection is to authenticate the connector with your OneDrive credentials. You need to sign into your OneDrive account to generate an authentication code.
To do this, select Authenticate to open the OneDrive sign-in page. Sign in and then copy and paste the authentication code into the connector. Click Verify.
After you click Verify, the account details are displayed in the connection dialog. If the authentication token has an expiry date, it will be shown here. You can select Update to change the OneDrive connection credentials or to generate a new expiration date.
When you are finished setting up your data connection, click Create to save the connection. The connection credentials are verified automatically. From the Data load editor, you can also verify the connection before you create it by clicking Test Connection.
The location of the connection depends on how you select data.
From Add data, it will be saved under File Locations.
From the Data load editor, it will be saved under Data connections with the name that you provided.
Selecting data with a OneDrive connection
When you create a OneDrive connection with Add data, the data selection step follows immediately. When you create a data connection with the Data load editor, you need to open the data connection before you can select data.
To select data, first, navigate to the file path location on your OneDrive account. Next, locate your files by clicking on the folder names. You can navigate backwards by clicking on the previous folder in the path field or by clicking . You can filter the file types that are shown by using the File type drop-down menu.
First, select a file. Then, select the data tables and the data fields that you want to load. You can rename data fields before loading them into Qlik Sense by clicking on the field name and entering a new name. The new name is mapped by Qlik Sense as an alias to that field name in the database.
Data file properties
If you are loading data from an excel file or from a delimited file, you may need to adjust the data file properties. The following table describes the data file properties for these file types:
|Parameter||Option||Description||For file type|
|Field names||Embedded field names||Set to specify if the table contains Embedded field names or No field names. Typically, in an Excel spreadsheet, the first row contains the embedded field names.||
|-||No field names||Select if the fields are not labeled. If you select this option, fields will be named A,B,C...||
|Header size||-||Set to the number of header rows to ignore. Typically, you want to exclude rows that contain general information that is not in a columnar format.||
|Delimiter||-||Set the field delimiter. Select a standard delimiter (comma, semicolon, space, tab) or a custom delimiter.||Delimited files|
|Quoting||MSQ||Used to specify modern style quoting which allows multi-line content. End-of-line characters must be enclosed with double quotation marks. Double quotation marks (“) appearing as the first or last character in field content will be interpreted as the start or end of multi-line content.||Delimited files|
|Standard||Used to specify standard quoting. Double and single quotation marks accepted only when they are the first and last blank character of a field value.||Delimited files|
|No Quote||Used if quotation marks are not to be accepted in the file.||Delimited files|
|Character set||-||Select the character set for the data you are loading. Select a standard character set or a custom character set.||Delimited files|
|Ignore end-of-file-character||-||Select to ignore characters with code point 26, which otherwise denotes an end-of-file character, are disregarded and can be part of a field value. Only relevant for .txt files||Delimited files|
|Comment||-||Data files can contain comments between records. Comments are denoted by starting a line with one or more special characters, for example //. Specify one or more characters to denote a comment line. Qlik Sense does not load lines starting with the character(s) specified here.||Delimited files|
Load data into your Qlik Sense app
Once you have finished selecting data, you can load your data into your Qlik Sense app. How you proceed will depend on whether you load data with Add data or the Data load editor.
To load data using Add data, click Add data. This will open the data in the Associations view of the data manager. In the associations view, you can continue to add data sources, transform the data, and associate the tables in Data manager.
Data profiling is enabled by default when you click Add data. Data profiling does the following:
- Recommends data associations.
- Auto-qualifies common fields between tables. This adds a unique prefix based on table name.
- Maps date and time fields to autoCalendar.
Tables are not associated on common field names automatically. You can associate tables in the Associations view.
If you want to load the data directly into your app, click and then disable data profiling.
When you add data with data profiling disabled, all existing data from data sources will be reloaded when you add the data. Tables will be associated on common field names automatically. Date and time fields will not be created.
Data load editor
To load data with the Data load editor, click Insert script once you are finished selecting the data. A load script is inserted into the script editor of the Data load editor. You can continue to edit the script in the script editor or you can click Load data to run the data load script.
Limitations and known issues
When authoring load scripts for use with the OneDrive Web Storage Provider Connector, there are specific limitations to be aware of.
- The STORE command is not supported (due to an API limitation around total file size).
- You cannot use a wildcard or masking syntax to only return files matching a specific pattern.
Reference - OneDrive REST API documentation
You can refer to the OneDrive API documentation to learn more about the requirements and restrictions imposed by the OneDrive API.