I looked through a few forum posts(post1, post2, post3, post4) but could not find an answer on how to load data file directly from onedrive online. I already have a ondedrive for desktop installed but would still like to be able to use the data directly from the internet (for some reason).
I create a link for the .dta file stored on my onedrive online.
Then in stata, I typed
use "https://1drv.ms/u/s!Ai3TX633y6WwgwSPYrpavoJmKzA0?e=ZvCBHN", clear
This did not work.
I also tried the following:
In onedrive online, I created a link to embed the file
<iframe src="https://onedrive.live.com/embed?cid=B0A5CBF7AD5FD32D&resid=B0A5CBF7AD5FD32D%21388 &authkey=AFnnLNzjuazLATw" width="98" height="120" frameborder="0" scrolling="no"></iframe>
I then replaced 'embed' with 'download'. This helps directly download the file upon entering the link. I then used this link in stata as:
use "https://onedrive.live.com/download?cid=B0A5CBF7AD5FD32D&resid=B0A5CBF7AD5FD32D%21388 &authkey=AFnnLNzjuazLATw", clear
This did not work either. I get an error:
file
https://onedrive.live.com/download?c...D5FD32D%21388&
> authkey=AFnnLNzjuazLATw.dta not Stata format
Any suggestions?
I create a link for the .dta file stored on my onedrive online.
Then in stata, I typed
use "https://1drv.ms/u/s!Ai3TX633y6WwgwSPYrpavoJmKzA0?e=ZvCBHN", clear
This did not work.
I also tried the following:
In onedrive online, I created a link to embed the file
<iframe src="https://onedrive.live.com/embed?cid=B0A5CBF7AD5FD32D&resid=B0A5CBF7AD5FD32D%21388 &authkey=AFnnLNzjuazLATw" width="98" height="120" frameborder="0" scrolling="no"></iframe>
I then replaced 'embed' with 'download'. This helps directly download the file upon entering the link. I then used this link in stata as:
use "https://onedrive.live.com/download?cid=B0A5CBF7AD5FD32D&resid=B0A5CBF7AD5FD32D%21388 &authkey=AFnnLNzjuazLATw", clear
This did not work either. I get an error:
file
https://onedrive.live.com/download?c...D5FD32D%21388&
> authkey=AFnnLNzjuazLATw.dta not Stata format
Any suggestions?
Comment