<?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: DBFS folder access in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbfs-folder-access/m-p/112487#M44228</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/101716"&gt;@DylanStout&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since dbutils.fs.ls("dbfs:/mnt") shows your files but the Databricks UI folder view keeps loading indefinitely, the issue likely stems from:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;UI rendering issue&lt;/LI&gt;&lt;LI&gt;Large directory size or high file count&lt;/LI&gt;&lt;LI&gt;Latency in metadata retrieval&lt;/LI&gt;&lt;LI&gt;Permissions inconsistency&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Recommended Steps to Resolve the Issue&lt;BR /&gt;1. Check Folder Size / File Count&lt;BR /&gt;The UI may struggle to render folders with thousands of files or deeply nested structures.&lt;BR /&gt;Solution: Use dbutils.fs.ls() in combination with len() to check file counts:&lt;BR /&gt;len(dbutils.fs.ls("dbfs:/mnt/&amp;lt;folder&amp;gt;"))&lt;BR /&gt;If the count is excessively high, consider partitioning or reorganizing files to improve UI responsiveness.&lt;/P&gt;&lt;P&gt;2. Verify Folder Permissions&lt;BR /&gt;Even if dbutils.fs.ls() works, the UI may fail due to missing read/list permissions in Unity Catalog or Storage ACLs.&lt;BR /&gt;Solution: Run the following to inspect permissions:&lt;BR /&gt;SHOW GRANTS ON STORAGE LOCATION '/mnt/&amp;lt;mount-point&amp;gt;';&lt;BR /&gt;If permissions are missing, add them:&lt;BR /&gt;GRANT READ ON STORAGE LOCATION '/mnt/&amp;lt;mount-point&amp;gt;' TO `&amp;lt;user/role&amp;gt;`;&lt;/P&gt;&lt;P&gt;3. Check for Mount Point Misconfiguration&lt;BR /&gt;An unstable or partially broken mount could cause this issue.&lt;BR /&gt;# Unmount (if already mounted)&lt;BR /&gt;dbutils.fs.unmount("/mnt/&amp;lt;mount-point&amp;gt;")&lt;BR /&gt;# Remount&lt;BR /&gt;dbutils.fs.mount(&lt;BR /&gt;source = "wasbs://&amp;lt;container&amp;gt;@&amp;lt;storage-account&amp;gt;.blob.core.windows.net/",&lt;BR /&gt;mount_point = "/mnt/&amp;lt;mount-point&amp;gt;",&lt;BR /&gt;extra_configs = {"&amp;lt;conf-key&amp;gt;":dbutils.secrets.get(scope="&amp;lt;scope&amp;gt;", key="&amp;lt;key&amp;gt;")}&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;4. Cluster Driver Overload / Memory Issue&lt;BR /&gt;UI delays can occur if the cluster’s driver node is overloaded.&lt;BR /&gt;Solution:&lt;BR /&gt;Restart the cluster.&lt;BR /&gt;If possible, increase the driver size (especially for metadata-heavy operations).&lt;BR /&gt;&lt;BR /&gt;5. Force Refresh Metadata&lt;BR /&gt;Sometimes stale metadata can cause UI issues.&lt;BR /&gt;Solution: Run this command to force metadata sync:&lt;BR /&gt;ALTER TABLE &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table_name&amp;gt; REFRESH;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2025 15:32:53 GMT</pubDate>
    <dc:creator>lingareddy_Alva</dc:creator>
    <dc:date>2025-03-13T15:32:53Z</dc:date>
    <item>
      <title>DBFS folder access</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-folder-access/m-p/112480#M44223</link>
      <description>&lt;P&gt;When trying to open a folder in dbfs, mnt in my case, my whole team gets the following error message - Uncaught Error: No QueryClient set, use QueryClientProvider to set one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DylanStout_1-1741874948742.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15385i90BE70F504AFC9D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DylanStout_1-1741874948742.png" alt="DylanStout_1-1741874948742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Reloading the page results in this error not showing up anymore, but the folder keeps loading and doesn't open.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mnt folder contains mounted storage containers.&lt;/P&gt;&lt;P&gt;When I use dbutils.fs.ls("dbfs:/mnt") it does show my files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 14:22:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-folder-access/m-p/112480#M44223</guid>
      <dc:creator>DylanStout</dc:creator>
      <dc:date>2025-03-13T14:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: DBFS folder access</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-folder-access/m-p/112487#M44228</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/101716"&gt;@DylanStout&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since dbutils.fs.ls("dbfs:/mnt") shows your files but the Databricks UI folder view keeps loading indefinitely, the issue likely stems from:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;UI rendering issue&lt;/LI&gt;&lt;LI&gt;Large directory size or high file count&lt;/LI&gt;&lt;LI&gt;Latency in metadata retrieval&lt;/LI&gt;&lt;LI&gt;Permissions inconsistency&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Recommended Steps to Resolve the Issue&lt;BR /&gt;1. Check Folder Size / File Count&lt;BR /&gt;The UI may struggle to render folders with thousands of files or deeply nested structures.&lt;BR /&gt;Solution: Use dbutils.fs.ls() in combination with len() to check file counts:&lt;BR /&gt;len(dbutils.fs.ls("dbfs:/mnt/&amp;lt;folder&amp;gt;"))&lt;BR /&gt;If the count is excessively high, consider partitioning or reorganizing files to improve UI responsiveness.&lt;/P&gt;&lt;P&gt;2. Verify Folder Permissions&lt;BR /&gt;Even if dbutils.fs.ls() works, the UI may fail due to missing read/list permissions in Unity Catalog or Storage ACLs.&lt;BR /&gt;Solution: Run the following to inspect permissions:&lt;BR /&gt;SHOW GRANTS ON STORAGE LOCATION '/mnt/&amp;lt;mount-point&amp;gt;';&lt;BR /&gt;If permissions are missing, add them:&lt;BR /&gt;GRANT READ ON STORAGE LOCATION '/mnt/&amp;lt;mount-point&amp;gt;' TO `&amp;lt;user/role&amp;gt;`;&lt;/P&gt;&lt;P&gt;3. Check for Mount Point Misconfiguration&lt;BR /&gt;An unstable or partially broken mount could cause this issue.&lt;BR /&gt;# Unmount (if already mounted)&lt;BR /&gt;dbutils.fs.unmount("/mnt/&amp;lt;mount-point&amp;gt;")&lt;BR /&gt;# Remount&lt;BR /&gt;dbutils.fs.mount(&lt;BR /&gt;source = "wasbs://&amp;lt;container&amp;gt;@&amp;lt;storage-account&amp;gt;.blob.core.windows.net/",&lt;BR /&gt;mount_point = "/mnt/&amp;lt;mount-point&amp;gt;",&lt;BR /&gt;extra_configs = {"&amp;lt;conf-key&amp;gt;":dbutils.secrets.get(scope="&amp;lt;scope&amp;gt;", key="&amp;lt;key&amp;gt;")}&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;4. Cluster Driver Overload / Memory Issue&lt;BR /&gt;UI delays can occur if the cluster’s driver node is overloaded.&lt;BR /&gt;Solution:&lt;BR /&gt;Restart the cluster.&lt;BR /&gt;If possible, increase the driver size (especially for metadata-heavy operations).&lt;BR /&gt;&lt;BR /&gt;5. Force Refresh Metadata&lt;BR /&gt;Sometimes stale metadata can cause UI issues.&lt;BR /&gt;Solution: Run this command to force metadata sync:&lt;BR /&gt;ALTER TABLE &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table_name&amp;gt; REFRESH;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 15:32:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-folder-access/m-p/112487#M44228</guid>
      <dc:creator>lingareddy_Alva</dc:creator>
      <dc:date>2025-03-13T15:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: DBFS folder access</title>
      <link>https://community.databricks.com/t5/data-engineering/dbfs-folder-access/m-p/112796#M44331</link>
      <description>&lt;P&gt;Compute had to be assigned first before being able to open the folder, this was done automatically before.&lt;/P&gt;&lt;P&gt;The error is however not clear at all that this has to be done and that this is causing the error.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 12:05:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbfs-folder-access/m-p/112796#M44331</guid>
      <dc:creator>DylanStout</dc:creator>
      <dc:date>2025-03-17T12:05:46Z</dc:date>
    </item>
  </channel>
</rss>

