Content of directory on path 'https://datalakecohswtr.dfs.core.windows.net/files/sales/csv/**' cannot be listed.

Adeymola 0 Reputation points
2025-05-20T05:25:24.1866667+00:00

I am trying to View Top 100 row of my file but it keeps bringing up error

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,562 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Syed Aaqid Ali 580 Reputation points Microsoft External Staff Volunteer Moderator
    2025-05-22T20:38:17.2966667+00:00

    Hello Adeymola,

    As part of investigation unfortunately we lack in enquiring few details from your end however based on the error message "Content of directory on path cannot be listed" typically indicates that the user querying Azure Data Lake does not have the necessary permissions to list the files in the specified directory. This can occur for several reasons:

    • The Microsoft Entra user does not have permission to list the files in Data Lake Storage.
    • The Microsoft Entra ID or SQL user accessing the data does not have the required permissions.
    • The user may not have the necessary permissions to read the Delta Lake Storage.

    To resolve this issue, you can grant user the Storage Blob Data Contributor and Reader role in the storage account you are trying to query. This role will provide the necessary permissions to list and access the files.

    I would also recommend checking Can't read, list, or access files in Azure Data Lake Storage

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.            User's image

    If you have any other questions or this answer is not helpful, let me know in the "comments" and help me with the questions asked above so that I can proceed with investigating this issue?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.