<?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: Can't Migrate Auto Loader To File Events in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152679#M53857</link>
    <description>&lt;P&gt;I'm so sorry for this. Turns out I've been assigning roles to the wrong service account. I recently got access to the Storage Credential in Databricks and noticed the different service account.&lt;/P&gt;&lt;P&gt;These roles were enough:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Storage Blob Data Contributor (storage account)&lt;/LI&gt;&lt;LI&gt;Storage Contributor (storage account)&lt;/LI&gt;&lt;LI&gt;Storage Queue Data Contributor (storage account)&lt;/LI&gt;&lt;LI&gt;EventGrid EventSubscription Contributor (resource group)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks for being so helpful!&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2026 09:45:16 GMT</pubDate>
    <dc:creator>mjtd</dc:creator>
    <dc:date>2026-03-31T09:45:16Z</dc:date>
    <item>
      <title>Can't Migrate Auto Loader To File Events</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152470#M53824</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to migrate my auto loader job to use file events, but it's failing with this error:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;com.databricks.sql.util.UnexpectedHttpStatus: Failed to list objects. There are problems on the location that need to be resolved. Details: Failed to provision file events resources during queue.create operation.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here are the roles I have assigned to the Databricks Access Connector in Azure:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;EventGrid Contributor&lt;/STRONG&gt; at the&amp;nbsp;&lt;STRONG&gt;resource group&lt;/STRONG&gt;&amp;nbsp;level.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;EventGrid Data Contributor&lt;/STRONG&gt; at the&amp;nbsp;&lt;STRONG&gt;resource group&lt;/STRONG&gt;&amp;nbsp;level.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;EventGrid EventSubscription&lt;/STRONG&gt; &lt;STRONG&gt;Contributor&lt;/STRONG&gt; at the&amp;nbsp;&lt;STRONG&gt;resource group&lt;/STRONG&gt;&amp;nbsp;level.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Storage Account Contributor&lt;/STRONG&gt; at the&amp;nbsp;&lt;STRONG&gt;storage account&lt;/STRONG&gt;&amp;nbsp;level.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Storage Blob Data Contributor&lt;/STRONG&gt; at the&amp;nbsp;&lt;STRONG&gt;storage account&lt;/STRONG&gt;&amp;nbsp;level.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Storage Queue Data Contributor&lt;/STRONG&gt; at the &lt;STRONG&gt;storage account&lt;/STRONG&gt; level.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have tried recreating the external location from scratch.&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;spark.readStream.format("cloudFiles")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.option("cloudFiles.format", "json")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.option("cloudFiles.useManagedFileEvents", True)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.option("cloudFiles.schemaLocation", SCHEMA_PATH)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.option("cloudFiles.inferColumnTypes", True)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.option("cloudFiles.schemaEvolutionMode", "addNewColumns")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;.load(INPUT_FILES_PATH)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking the time to read my question!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 07:49:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152470#M53824</guid>
      <dc:creator>mjtd</dc:creator>
      <dc:date>2026-03-30T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Migrate Auto Loader To File Events</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152476#M53825</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216959"&gt;@mjtd&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;The com.databricks.sql.util.UnexpectedHttpStatus: Failed to list objects error during migration to File Events mode typically indicates one of two things: either the External Location hasn't had File Events enabled yet in Unity Catalog, or the Databricks Access Connector is missing one or more required Azure RBAC roles.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1 — Enable File Events on the External Location first&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Before setting cloudFiles.useManagedFileEvents=True in your stream, you must explicitly enable File Events on the External Location in Unity Catalog. Without this, the useManagedFileEvents flag will fail at the infrastructure setup phase with SQL or via the Unity Catalog UI: &lt;STRONG&gt;Catalog Explorer → External Locations → (your location) → Edit → Enable File Events&lt;/STRONG&gt;. You can verify the setup is correct by clicking &lt;STRONG&gt;Test Connection&lt;/STRONG&gt; — look for a green checkmark on the &lt;EM&gt;File Events Read&lt;/EM&gt; item.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2 — Assign the correct RBAC roles to the Access Connector&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The Access Connector for Azure Databricks needs the following Azure roles (in addition to Storage Blob Data Contributor which you may already have):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3 — Register the EventGrid resource provider&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If this is your first time using File Events in the subscription, make sure Microsoft.EventGrid is registered.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4 — Stop the old stream, tear down legacy notification resources, then restart&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Per the &lt;A class="" href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/cloud-object-storage/auto-loader/migrating-to-file-events" target="_blank" rel="noopener"&gt;official migration guide&lt;/A&gt;, you should:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Stop the existing Auto Loader stream&lt;/LI&gt;&lt;LI&gt;Delete the legacy Azure Event Grid subscription and Storage Queue created by the old cloudFiles.useNotifications=True mode&lt;/LI&gt;&lt;LI&gt;Keep the same checkpoint directory — it will be reused&lt;/LI&gt;&lt;LI&gt;Restart the stream with cloudFiles.useManagedFileEvents=True (no need for cloudFiles.useNotifications=True)&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;df = (spark.readStream&lt;BR /&gt;.format("cloudFiles")&lt;BR /&gt;.option("cloudFiles.format", "parquet") # or json/csv/etc.&lt;BR /&gt;.option("cloudFiles.useManagedFileEvents", "true") # the new flag&lt;BR /&gt;.load("&amp;lt;path&amp;gt;")&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;Let me know if this can help you and If this helped you, please give it a &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Kudo — it helps others find the answer too!&lt;/P&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&lt;STRONG&gt;References:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;&lt;A class="" href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/cloud-object-storage/auto-loader/migrating-to-file-events" target="_blank" rel="noopener"&gt;Migrate to Auto Loader with file events — Azure Databricks&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;A class="" href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/cloud-object-storage/auto-loader/file-events-explained" target="_blank" rel="noopener"&gt;Auto Loader with file events overview — Azure Databricks&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;A class="" href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/cloud-object-storage/auto-loader/file-notification-mode" target="_blank" rel="noopener"&gt;Configure Auto Loader in file notification mode — Azure Databricks&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Mar 2026 08:20:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152476#M53825</guid>
      <dc:creator>Ale_Armillotta</dc:creator>
      <dc:date>2026-03-30T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Migrate Auto Loader To File Events</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152481#M53827</link>
      <description>&lt;P&gt;Thanks for the quick response!&lt;/P&gt;&lt;P&gt;1. File events are enabled on the external location. But connection test failed with the same queue.create permission error. I have no clue which permission is still missing.&lt;/P&gt;&lt;P&gt;2. Microsoft.EventGrid is registered.&lt;/P&gt;&lt;P&gt;3. I did not use file notifications before. And I've stopped the old stream and am restarting on every try.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 08:47:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152481#M53827</guid>
      <dc:creator>mjtd</dc:creator>
      <dc:date>2026-03-30T08:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Migrate Auto Loader To File Events</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152488#M53831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216959"&gt;@mjtd&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;A few things to double‑check...&amp;nbsp;Make sure you’re running in a Unity Catalog enabled workspace and that your source path is under a UC external location or volume, not just a raw storage URL.&amp;nbsp;Auto Loader file notifications with managed file events are only supported on ADLS Gen2 (abfss://) and UC volumes over it.&amp;nbsp;They are not supported on Azure Blob Storage (blob.core.windows.net). If your external location points at Blob, you’ll need to either move to ADLS Gen2 or fall back to directory listing/classic notifications.&lt;/P&gt;
&lt;P&gt;Also, make sure&amp;nbsp;your cluster is on Databricks Runtime 14.3 LTS or above.&lt;/P&gt;
&lt;P&gt;If all of the above are true, and the test connection still fails with a queue.create error, checking the storage account’s Activity Log for failed queueServices/queues/write operations (and the caller identity) is the next best step.&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>Mon, 30 Mar 2026 09:13:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152488#M53831</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-30T09:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Migrate Auto Loader To File Events</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152679#M53857</link>
      <description>&lt;P&gt;I'm so sorry for this. Turns out I've been assigning roles to the wrong service account. I recently got access to the Storage Credential in Databricks and noticed the different service account.&lt;/P&gt;&lt;P&gt;These roles were enough:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Storage Blob Data Contributor (storage account)&lt;/LI&gt;&lt;LI&gt;Storage Contributor (storage account)&lt;/LI&gt;&lt;LI&gt;Storage Queue Data Contributor (storage account)&lt;/LI&gt;&lt;LI&gt;EventGrid EventSubscription Contributor (resource group)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks for being so helpful!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 09:45:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152679#M53857</guid>
      <dc:creator>mjtd</dc:creator>
      <dc:date>2026-03-31T09:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Migrate Auto Loader To File Events</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152682#M53858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216959"&gt;@mjtd&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;No problem. Glad you're able to progress.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 10:00:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-migrate-auto-loader-to-file-events/m-p/152682#M53858</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-31T10:00:06Z</dc:date>
    </item>
  </channel>
</rss>

