<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Databricks unable to list ADLS folder and files in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158805#M54777</link>
    <description>&lt;P&gt;Thanks!! Shamen Paris&lt;BR /&gt;The first two point has ruled out as the folder structure was not that complex and having very minimal data. Also, I did add the trailing slash in the query, it was a typo miss in my question.&lt;BR /&gt;&lt;BR /&gt;I was confused why Iam able to browser all files from UI and not from the cluster.&lt;BR /&gt;So, third point do hint out on the cluster network, I checked the connectivity between the cluster network and PEP of storage account both are hosted in different Vnet. So, enabling the vnet Peering resolved the issue. Thankyou !!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2026 14:22:18 GMT</pubDate>
    <dc:creator>CG29</dc:creator>
    <dc:date>2026-06-11T14:22:18Z</dc:date>
    <item>
      <title>Databricks unable to list ADLS folder and files</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158761#M54766</link>
      <description>&lt;P&gt;Hi Databricks Community,&lt;BR /&gt;&lt;BR /&gt;I am able to list the container from my databricks workspace but unable to list the folder and files further.&lt;BR /&gt;If I try to access the same files and folder from the Databricks UI, external location path, I am able to see all files and folder.&lt;BR /&gt;I am getting output for below query.&lt;BR /&gt;dbutils.fs.ls("abfss://***@*****.dfs.core.windows.net/")&lt;BR /&gt;&lt;BR /&gt;but if I run the below dbutils query, it runs for indefinite time without any output.&lt;BR /&gt;dbutils.fs.ls("abfss://***@*****.dfs.core.windows.net/foldername")&lt;BR /&gt;&lt;BR /&gt;Please help me identify what I am missing here. Unable to read any files from my ADLS Gen2 Storage. Thanks !!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 08:32:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158761#M54766</guid>
      <dc:creator>CG29</dc:creator>
      <dc:date>2026-06-11T08:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks unable to list ADLS folder and files</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158779#M54768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/234940"&gt;@CG29&lt;/a&gt;,&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;I suspect the main thing missing here is that these two access paths aren't always using the same permission model. When you browse the path from the Databricks UI as an external location, that access is typically governed through Unity Catalog using an external location plus its storage credential, whereas a direct dbutils.fs.ls("abfss://...") call is raw path-based access to cloud storage and therefore depends on the permissions available for that direct URI access path. Databricks calls out both patterns in the public docs and generally recommends using Unity Catalog-managed access where possible rather than relying on raw cloud URIs for day-to-day access. See &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/files/" rel="noopener noreferrer nofollow" target="_blank"&gt;Work with files on Azure Databricks&lt;/A&gt;, &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/connect/unity-catalog/cloud-storage/" rel="noopener noreferrer nofollow" target="_blank"&gt;Connect to cloud object storage using Unity Catalog&lt;/A&gt;, and &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/connect/unity-catalog/cloud-storage/external-locations-adls" rel="noopener noreferrer nofollow" target="_blank"&gt;Connect to an Azure Data Lake Storage Gen2 external location&lt;/A&gt;.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;So if the container root lists successfully but abfss://.../foldername hangs, the most likely explanation is that the identity used for the direct abfss call can see the container itself but lacks sufficient ADLS Gen2 permissions on that subdirectory or one of its parent paths. In ADLS Gen2, listing a directory requires read and execute permissions on that directory, and traversing into nested paths requires execute permissions on the parent directories as well. Microsoft documents that behaviour in the ACL guidance here: &lt;A href="https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control" rel="noopener noreferrer nofollow" target="_blank"&gt;Access control lists in Azure Data Lake Storage&lt;/A&gt;.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;In other words, being able to see the location in the Databricks UI does not necessarily prove that the same notebook call over abfss:// has the required permissions end-to-end. I would first verify which identity is actually being used by the cluster for direct ADLS access, and then check the ACLs on foldername and its parent directories to make sure that identity has the required traverse and list permissions. If ACLs were only set at a higher level, it is also worth checking whether they were ever propagated recursively to existing child folders and files. Microsoft’s ADLS ACL docs cover that as well in the CLI guidance for recursive ACL updates.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;It is also worth trying the path with a trailing slash, since Databricks examples for directory listings use that form, for example dbutils.fs.ls("abfss://container@account.dfs.core.windows.net/path/"). That probably isn’t the root cause here, but it is a quick sanity check.&lt;/P&gt;
&lt;P class="wnfdntt _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea"&gt;Hope this helps.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 10:01:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158779#M54768</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-06-11T10:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks unable to list ADLS folder and files</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158796#M54771</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;Assuming your permissions are fully set up correctly, an indefinite hang (rather than a quick "403 Forbidden" error) usually points to either a timeout or a dropped network connection.&lt;/P&gt;&lt;P&gt;Here are three common culprits you might want to check out:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;The folder has too many files:&lt;/STRONG&gt; The Databricks UI is smart and uses pagination (it only loads the first 50–100 files at a time), which makes it load instantly. However, dbutils.fs.ls() is synchronous and tries to load the &lt;I&gt;entire&lt;/I&gt; list of files into your cluster's memory all at once. If there are thousands of files in there, it will just hang. Try testing the command on a much smaller subfolder.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;The missing trailing slash:&lt;/STRONG&gt; Azure can be very picky about paths. If you run it without a slash at the end (.../foldername), Azure does a massive prefix scan just to check if "foldername" is a single file first. Try running it exactly like this with the slash at the end: .../foldername/ and see if it runs normally.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;A hidden firewall/networking rule:&lt;/STRONG&gt; The UI and your notebook actually run on different networks. The UI uses the Databricks Control Plane, while your notebook uses your cluster's specific VNet (the Data Plane). Your ADLS account might be set to "Allow Azure Services" (which lets the UI work), but a firewall or Network Security Group might be silently dropping the packets from your cluster's VNet, causing it to just hang while waiting for a response.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope one of these points you in the right direction!&lt;BR /&gt;&lt;BR /&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 12:45:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158796#M54771</guid>
      <dc:creator>ShamenParis</dc:creator>
      <dc:date>2026-06-11T12:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks unable to list ADLS folder and files</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158797#M54772</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Following are may be the Causes&lt;/STRONG&gt;&lt;BR /&gt;1. Different authentication methods&lt;BR /&gt;- The UI's external location uses Unity Catalog credentials&lt;BR /&gt;- Your dbutils.fs.ls() command uses the compute's Spark configurations&lt;BR /&gt;- These may be using different credentials with different permissions&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2. Missing Spark configurations&lt;BR /&gt;- Your compute might not have the necessary ADLS Gen2 authentication configs&lt;BR /&gt;&lt;BR /&gt;3. Credential permissions&lt;BR /&gt;- The credential might have container-level LIST but not deeper TRAVERSE/READ permissions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to&amp;nbsp;Diagnose&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Check compute type&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are you using server less, shared, or single-user compute?&lt;/LI&gt;&lt;LI&gt;Unity Catalog-enabled clusters handle credentials differently&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Solutions&lt;BR /&gt;Option 1: Use Unity Catalog Volumes&lt;/P&gt;&lt;P&gt;Option 2: Add Spark configurations to your compute Add these to your cluster's Spark Config (Cluster → Configuration → Advanced Options)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 12:51:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158797#M54772</guid>
      <dc:creator>ashukasma</dc:creator>
      <dc:date>2026-06-11T12:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks unable to list ADLS folder and files</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158805#M54777</link>
      <description>&lt;P&gt;Thanks!! Shamen Paris&lt;BR /&gt;The first two point has ruled out as the folder structure was not that complex and having very minimal data. Also, I did add the trailing slash in the query, it was a typo miss in my question.&lt;BR /&gt;&lt;BR /&gt;I was confused why Iam able to browser all files from UI and not from the cluster.&lt;BR /&gt;So, third point do hint out on the cluster network, I checked the connectivity between the cluster network and PEP of storage account both are hosted in different Vnet. So, enabling the vnet Peering resolved the issue. Thankyou !!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 14:22:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158805#M54777</guid>
      <dc:creator>CG29</dc:creator>
      <dc:date>2026-06-11T14:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks unable to list ADLS folder and files</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158808#M54778</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/234940"&gt;@CG29&lt;/a&gt;&amp;nbsp;, I'm glad that helped&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 14:29:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-unable-to-list-adls-folder-and-files/m-p/158808#M54778</guid>
      <dc:creator>ShamenParis</dc:creator>
      <dc:date>2026-06-11T14:29:02Z</dc:date>
    </item>
  </channel>
</rss>

