Forum Discussion

webportal's avatar
webportal
Impactful Individual
6 years ago
Solved

Connect data flow to Excel file stored in OneDrive

This should be simple: I need to create a data flow to get data from an Excel file stored in my OneDrive.   The URL is: https://xxx-my.sharepoint.com/personal/xxx_com/Documents/PowerBI/P&L%20CDS%2...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi webportal ,

     

    Usually, this encompasses to extra characters in the URL that are part of the link that OneDrive generates for the file, but not accepted by PBI (something like :x:/r/ after site address and  ?d=w3a41a... after the file name).

     

    The URL in your post, however, looks valid. In my test, I had this error when I entered an incorrectly formatted URL and signed it. When I fixed it the error did not go away, but I was able to sign in and proceed with Next. Maybe this will work for you too?

     

    An alternative way, which I found, was via Web API connector. You can try this too.

    If this does not help, this is the Source step generated by PBI, you can try altering it for your case and then provide credentials when requested by PBI:

    Source = Excel.Workbook(Web.Contents("https://xxx-my.sharepoint.com/personal/xxx/Documents/Book2.xlsx"), null, true),

    Kind regards,

    JB