Usage of OneDrive Connector in ETL pipeline
To use OneDrive connector in the ETL pipeline, the file details can be provided in multiple ways both in the Reader and the Writer.
OneDrive Connector path settings
To read data from OneDrive, users have the following options to provide details about the source file.
File URL (Root Folder path) and filename (if file is on root drive)
Path of File: https://onedrive.live.com/?id=root&cid=5XXXXXXXXXXXXXXX
File name: testonedrive.csv
Folder link and File name
Path of File: folder URL
Right click the folder>Share.
Click Copy.
Copy link.
File name: name of file.
Folder path and File name
Path of File: folder path (example: folder1/folder2/folder3/)
File name: name of file
File URL
Path of File: File Path (File URL generated by right-click on file>select Preview)
File URL and no File name
Path of File: file URL
Right click the file>Share.
Click Copy.
Copy link.
File name: empty.
Folder path including File name
Path of File: file path (example: folder1/folder2/file1.csv),
File name: empty
Shared files
Shared files/folders are available to the OneDrive connector.
In order to access shared files/folders, the links, URLs, or Folder/file paths can be given as per in the earlier scenarios with the exception that when we are using paths (not URLs), the path must start with "/shared".
Note: If a user has a folder named "shared" in this root and they try to access it with the path (like /shared/...), it will not work because the connector will assume that it should be searching for shared files/folders. The way to work around this is to start the path with "my files". Therefore the path will look like "/my files/shared/...". The text 'my files' can always be used at the beginning of the path when pointing to the user's drive, however it is not necessary.
No preexisting destination file (connector as writer)
In case the file path is known, however, there is no destination file, provide the file (folder) path. On running the ETL, a file will be created labelled as “temp_(generated GUID number)”.
Last updated