Forum Discussion

Victoria-NHA's avatar
Victoria-NHA
New Member
2 years ago
Solved

Help resolving Access Denied error when importing query built in exel, saved in sharepoint, into BI.

Hi everyone, I'm trying to import a query I built out in Excel into Power BI. I'm receiving the error message in the picture above and haven't been able to resolve why I'm getting the error.

 

I read this document ( @https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-import-excel-workbooks#are-there-any-limitations-to-importing-a-workbook) to help me with importing the query into Power BI. I know that I can use the file explorer to access OneDrive and import the book that way. My concern with this method though is if I were to get a new computer or leave the organization that the query would break since my OneDrive file path would no longer exist (or it would be altered) <--- Is this a legitimate concern or am I misunderstanding something here with using the file explorer to access SharePoint?

 

So I'm instead wanting to grab the URL for the query and paste that into the import action in Power BI and I'm receiving the error message above. From some google searching, it seems like this would be a possible method to help figure this out ( @https://learn.microsoft.com/en-us/sharepoint/manage-sites-in-new-admin-center).

 

However, I already have admin privileges and this should be able to work.

 

Can you help me troubleshoot this?!

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Victoria-NHA 

     

    It seems that you are trying to use the following feature for an excel workbook stored in SharePoint. 

     

    In Power BI Desktop this feature launches the Windows File Explorer to find an Excel file. The problem is that the Windows File Explorer seems to only find files from the local drive/network folder/local OndDrive folder. When pasting the file URL in the File Name input box, I can reproduce the same error as the original post showed. I'm not sure if it can access a sharepoint folder through the File Explorer. I made many searches for this but found nothing helpful. 

     

    Since the action of this feature is a one-time event. Once created with these steps, the Power BI Desktop file has no dependence on the original Excel workbook. If your purpose is to store the Excel workbooks for further importing, you can store them in SharePoint. Next time when you want to import the queries, you just need to download the Excel file to the local drive and then import. 

     

    I hope this would be helpful. 

     

    Best Regards,
    Jing
    If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

10 Replies

  • christinepayton's avatar
    christinepayton
    Most Valuable Professional

    Here's a tutorial on my preferred method to reference files from SharePoint - basically you put them in a shared team site, then swap out the path in the query from desktop to SharePoint. The tricky bit is getting the correct path for the file, since the normal "copy link" won't be the right one:

    https://www.youtube.com/watch?v=LYu3wqb2Nx4

    • Victoria-NHA's avatar
      Victoria-NHA
      New Member

      Hi christinepayton thank you for your response ---- it appears that the video you provided is set to private and inaccessible. Are you able to send a non-priviate link along? Thanks!

      • christinepayton's avatar
        christinepayton
        Most Valuable Professional

        Whoops must have copied the wrong one 🙃 - try this? https://www.youtube.com/watch?v=LYu3wqb2Nx4 

         

        Also the error message you're getting makes me think you're selecting the incorrect authentication type when you enter credentials - make sure to select Microsoft account, not anonymous-- 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Victoria-NHA 

     

    It seems that you are trying to use the following feature for an excel workbook stored in SharePoint. 

     

    In Power BI Desktop this feature launches the Windows File Explorer to find an Excel file. The problem is that the Windows File Explorer seems to only find files from the local drive/network folder/local OndDrive folder. When pasting the file URL in the File Name input box, I can reproduce the same error as the original post showed. I'm not sure if it can access a sharepoint folder through the File Explorer. I made many searches for this but found nothing helpful. 

     

    Since the action of this feature is a one-time event. Once created with these steps, the Power BI Desktop file has no dependence on the original Excel workbook. If your purpose is to store the Excel workbooks for further importing, you can store them in SharePoint. Next time when you want to import the queries, you just need to download the Excel file to the local drive and then import. 

     

    I hope this would be helpful. 

     

    Best Regards,
    Jing
    If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

    • blackanese27's avatar
      blackanese27
      Frequent Visitor

      Thanks a lot for the help with this. It's very much appreciated!

  • Loading Excel files into a workspace is generally frowned upon.  Put the files on a (team) OneDrive and access them from there.

      • lbendlin's avatar
        lbendlin
        Super User

        It's a bit of a black hole.  You have to take Microsoft by their word that they will refresh the semantic model "within the hour"  of changes in the file. You are also abusing the workspace as a data store.  There are no guarantees whatsoever that this is a safe or reliable place to store data.