Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
StianBWLNG
Frequent Visitor

404 "The specified container does not exist" When trying to connect to Azure Data Lake Gen2

Hi,

I want to connect PowerBI to my Azure Data Lake Gen2.

 

I use PowerBI Desktop > Get Data > Select Azure Data Lake Gen2 > Enter the URL I find under properties of my container in Azure portal (https://mytestdatalake.blob.core.windows.net/container) and choose to authenticate with my account.

 

Then I get the following error:
Details: "AzureDataLakeStorage failed to get contents from 'https://mytestdatalake.blob.core.windows.net/container'. Status code: 404, description: 'The specified container does not exist.'."

 

What I have tried:

  1. I have verified in the portal that I have contributor access to the data lake and the container
  2. I have tested authenticating using the account key instead, same error
  3. I have accessed the same container using Azure Portal, Azure Storage Explorer and Python SDK without issues
  4. I am able to connect PowerBI to a normal storage account (without hierachical namespace) without issues using account key
  5. I tested creating a fresh data lake with a container with public anonymous access, still got the same error
  6. I read a FAQ relating to DataBricks which said to create container from code, not from portal, so i deleted the old and created it using Python SDK and then tried to connect. Same error.

I am uncertain of what more to test so I turn to you and hope for some advice 🙂

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. I think the URL you are using is wrong. If you go to the storage explorer inside Azure Portal from Web you can find the correct url in properties. It looks like this:
https://[company].dfs.core.windows.net/[container]/[folder]/[file]

If you want to try databricks you need to create a table for the cluster. Then connect via Spark or Databricks connector in Power Bi. It works good.

Hope this helps


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

5 REPLIES 5
StianBWLNG
Frequent Visitor

Thanks! You are absolutely right. I used the url in the properties of the container. When I switched to the url listed as Primary Endpoint in the properties of the data lake itself it works. 
You made my day! Thanks again 🙂

Thank you, just wanna to add to that make sure to add the Account Access Key to avoid facing other issue "Access Forbidden" 

Rogerren_0-1669042979414.png

where and how to add the account access key?

hi @Rogerren , how did you resolve this issue?

ibarrau
Super User
Super User

Hi. I think the URL you are using is wrong. If you go to the storage explorer inside Azure Portal from Web you can find the correct url in properties. It looks like this:
https://[company].dfs.core.windows.net/[container]/[folder]/[file]

If you want to try databricks you need to create a table for the cluster. Then connect via Spark or Databricks connector in Power Bi. It works good.

Hope this helps


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.