Now I have written this above address in the 'URL' section under 'Authentication'. Is this true? Or should I specify in the 'Folder' and 'File' sections in the 'Connection' section?
Which Auth Scheme should I choose?
Page 1 / 1
Hi @ebay,
Thank you for your question!
Have you tried going with the regular excel connector? As per the docs at https://cdn.cdata.com/help/RXH/ado/pg_connection.htm there’s a specialized URI scheme to connect to OneDrive: onedrive://remotePath/file.xlsx
However, the data source is always pointing to one particular excel file, not to a folder as you can do e.g. with the CSV provider - since you mention 48 separate files that would mean 48 data sources.
Is there any way you can get the data in another file format, such as csv, parquet, …?
Hi @fwagner
Thanks for the answer. Yes, unfortunately these solutions are only for an excel file. There are separate sheets in each Excel file. So the cost will increase even more. I guess I'll have to convert them all to csv files.
Hi Erdem
If the Excel files are located in sharepoint and you want to connect to them in one data source you can do so with the Excel Online data source. You found my guide I see.
The thing is you will need to set up an app to gain access, this can be difficult.
I suppose this is where you got stuck. This is something to look into an app is the most important thing when working with non SQL Microsoft data sources.
This also authenticates via OAuth. I believe the SOAP variant no longer works / will no longer work after all the basic authentication shutdown activities Microsoft is rolling out.
@Thomas Lind Is it possible to connect to the excel files stored in an Azure storage accoun (container)?
How can I setup it?
Hi @ebay, I was just able to successfully test this. Here are the steps you need to take:
safe Excel files to OneDrive
Create an application registration on portal.azure.com as explained in
The app registration needs these delegated permissions: Files.Read, Files.Read.All, Files.Read.Selected, Sites.Read.All, offline_access
set callback url http://local host:33333 for the app
create an app secret
create a Excel Online data source on app.timextender.com with these parameters:
Auth Scheme: AzureAD
Initiate OAuth: GETANDREFRESH
Callback URL: http://local host:33333
OAuth Client Id: <your app client id>
OAuth Client Secret: <your app client secret>
OAuth Grant Type: CODE
(no need to specify Drive or SharepointURL if you’re using your personal OneDrive)
map the data source to your ODX instance
in TimeXtender desktop add the data source
edit the data source, select “Authorize OAuth”, grant permissions in the browser window that pops up
verify with “Test connection” that OAuth worked
Now you can list workbooks and sheets within, and transfer data
(please note that “local host” should of course not have a space when you insert it as callback url, I needed to mis-spell it here due to filtering reasons)