You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
amarbl
7 years agoNew member | Level 2
Unable to connect Power BI Desktop with Dropbox
Hi,
I have an excel spreadsheet in Dropbox that I would like to load in the Power BI
Desktop. I am unable to connect Power BI Desktop with Dropbox.
This is what I did-
I created an app in Dropbox and then generated an app token that has access to all the folders in Dropbox.
Then I used the Web Connector in the Power BI Desktop with the v2 API URL
URL: https://content.dropboxapi.com/2/files/download
HTTP Header
Authorization : Bearer api_token
Dropbox-API-Arg : {\"path\": \"/folder/file.xslx\"}"
Once I click on Ok, I get a 400 Error that says "Web.Contents failed to get contents from 'https://content.dropboxapi.com/2/files/download' (400): Bad Request"
Any help would be greatly appreciated.
Thanks
- Greg-DBDropbox StaffCan you print the response body for the 400 error? It should contain a more useful error message.
- heimk008New member | Level 2
I am getting the exact same issue...
for the "Dropbox-API-Arg" i have : {\"path\": \"/PR Team/MASTER PR Media NEW.xlsm\"}"
- first of all is that correct if the folder name is PR Team and the file is called MASTER PR Media NEW.xlsm
-second you asked for the response body for the 400 error, how do I access that?
- Greg-DBDropbox StaffThat path value itself appears correct. (The '\' characters would be to escape the '"' characters, but that may or may not be necessary depending on your client/environment.)
Getting the response body is the right way to begin debugging this. Exactly how you do so depends on the particular HTTP client you're using though, so I'm afraid I can't offer specific instructions if you're not using an official Dropbox SDK. You should refer to the documentation for your HTTP client for information on how to retrieve the response body.
- shankar267New member | Level 2
I have an excel spreadsheet in Dropbox that I would like to load in the Power Bi Desktop. I am not able to connect Power BI Desktop with Dropbox.
This is what I did-
I created an app in Dropbox and then generated an app token that has access to all the folders in Dropbox.
Then I used the Web Connector in the Power BI Desktop with the v2 API URL
URL: https://content.dropboxapi.com/2/files/download
HTTP Header
Authorization : Bearer api_token
Dropbox-API-Arg : {\"path\": \"/folder/file.xslx\"}"
- Greg-DBDropbox Staff
shankar267 Can you elaborate on what you mean when you say you are "not able to connect Power BI Desktop with Dropbox"? What error or unexpected output do you get from the Dropbox API?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 2 days agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!