OneDrive-Personal and Excel Data Model

fadee2

Active Member
Joined
Nov 7, 2020
Messages
405
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I created a Data Model in excel from a workbook that is stored on onedrive personal. I used the embed code from onedrive with Excel's Get and Transform feature to create that Data Model, by replacing embed with download. The link was working fine uptil now. but today when I did refresh query excel returned an error,

" We could not refresh the connectioned 'Query'. Here's the error messege we've got:
[Datasource.error] The downloaded data is HTML, which isnt expected Type. The URL might be wrong or you might not have provided the right credentials to the server."

I then logged in to my onedrive and tried the embed feature once again, and found out the embed code structure has changed.
Previously the embed code structure was like

"https://onedrive.live.com/embed?resid=xxxxxx"

and now it is like this

"https://1drv.ms/x/c/xxxxxxxxxxxx"

Looking at the new link, I think I understand why the error said THE URL MIGHT BE WRONG.
Had this happened to any one? Is there any info on this?
Now, how can I import data from my onedrive workbook to my local workbook, so that when the onedrive workbook is updated the data model can get updated data with Refresh All Button from Queries and Connection Group, in Excel?

Any help is highly appreciated.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top