<?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: Trouble Enabling File Events For An External Location in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118990#M45757</link>
    <description>&lt;P&gt;1. My managed identity has these roles, as you can see in the screenshot&lt;/P&gt;&lt;P&gt;2. I am the owner and have MANAGE--I'm also the account and workspace admins.&lt;/P&gt;&lt;P&gt;3. Yes, UC is enabled and I followed the documentation exactly as you can see in the screenshots&lt;/P&gt;&lt;P&gt;4. You can see this has been done in the screenshots&lt;/P&gt;&lt;P&gt;5. I don't have this option, as you can see in the last screenshot&lt;/P&gt;&lt;P&gt;6. I don't have the option to enable file events which is what this post is about&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 03:40:37 GMT</pubDate>
    <dc:creator>v1b3_c0d3rXXX</dc:creator>
    <dc:date>2025-05-13T03:40:37Z</dc:date>
    <item>
      <title>Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118605#M45664</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am trying to enable file events on my Azure Workspace for the File Arrival Trigger trigger mode for Databricks Workflows. I'm following &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/connect/unity-catalog/cloud-storage/manage-external-locations#file-events" target="_self"&gt;this&lt;/A&gt; documentation exactly (I think) but I'm not seeing the option to enable them. As you can see here, my Azure Managed Identity has all of the required roles listed in the documentation assigned:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dnt_TchTheRolex_1-1746752104483.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16716i3E5D80419538A2BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dnt_TchTheRolex_1-1746752104483.png" alt="Dnt_TchTheRolex_1-1746752104483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I go to the advanced options of the external location to enable file events, I still do that see that option&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dnt_TchTheRolex_0-1746751988442.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/16715i9518D6722FB4E668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dnt_TchTheRolex_0-1746751988442.png" alt="Dnt_TchTheRolex_0-1746751988442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In addition, I'm a workspace and account admin and I've granted myself all possible permissions on all of these objects so I doubt that could be the issue. Maybe it's some setting on my storage account or something extra that I have to set up? Any help here/pointing me to the correct documentation would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 01:31:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118605#M45664</guid>
      <dc:creator>v1b3_c0d3rXXX</dc:creator>
      <dc:date>2025-05-09T01:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118935#M45746</link>
      <description>&lt;P&gt;I'm having this same issue with Databricks for AWS as well. The option does not show up under an existing external location, and I also have admin privileges, so I'm doubting it's a permission issue.&lt;/P&gt;&lt;P&gt;According to the docs, this is a public preview. Perhaps it's one of the few that requires a request for access per &lt;A href="https://docs.databricks.com/aws/en/release-notes/release-types" target="_self"&gt;docs&lt;/A&gt;&amp;nbsp;as I don't see it in our list of previews that can be activated in the workspace.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 18:15:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118935#M45746</guid>
      <dc:creator>Stentone</dc:creator>
      <dc:date>2025-05-12T18:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118939#M45747</link>
      <description>&lt;DIV class="paragraph"&gt;To enable file events for the File Arrival Trigger on your Azure Databricks Workspace, ensure the following requirements and configurations are in place:&lt;/DIV&gt;
&lt;OL start="1"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Azure Managed Identity Roles&lt;/STRONG&gt;: Confirm that the Azure Managed Identity used has the necessary roles assigned:
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Storage Blob Data Contributor&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;EventGrid EventSubscription Contributor&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Storage Queue Data Contributor&lt;/STRONG&gt; (required only if Azure Databricks is expected to create storage queues for you).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;External Location Permissions&lt;/STRONG&gt;: Verify that you are the owner of the external location or have the &lt;STRONG&gt;MANAGE&lt;/STRONG&gt; privilege assigned on that external location in Unity Catalog.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Unity Catalog Configuration&lt;/STRONG&gt;: The workspace must have Unity Catalog enabled, and the external location should be properly configured using Unity Catalog with file events enabled as mentioned in the documentation.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Storage Account Configuration&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Log into the Azure Data Lake Storage account linked to your external location and validate the IAM permissions for your managed identity using the connector ID or user-assigned managed identity ID obtained from the &lt;STRONG&gt;Catalog &amp;gt; External Locations&lt;/STRONG&gt; section in Databricks.&lt;/LI&gt;
&lt;LI&gt;Ensure that all required roles have been granted in Azure IAM.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Enable File Events in External Location&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Navigate to &lt;STRONG&gt;Catalog &amp;gt; External data &amp;gt; External Locations&lt;/STRONG&gt;, and select the external location of interest.&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Edit&lt;/STRONG&gt; under the kebab menu next to the "Test connection" button.&lt;/LI&gt;
&lt;LI&gt;In &lt;STRONG&gt;Advanced Options&lt;/STRONG&gt;, enable &lt;STRONG&gt;File events&lt;/STRONG&gt; and choose the file event type:
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Automatic&lt;/STRONG&gt;: Allows Databricks to set up subscriptions and events for you.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Provided&lt;/STRONG&gt;: Requires you to manually configure Azure storage queues and provide the queue URL in the corresponding field.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Testing Connection&lt;/STRONG&gt;: After enabling file events, wait a few minutes and then use the &lt;STRONG&gt;Test connection&lt;/STRONG&gt; functionality to confirm that file events are active on the external location.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;If the option to enable file events is still not visible after completing these steps, check for the following potential issues: - Managed identity permissions in Azure IAM might be incorrectly configured, even if they appear complete.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;- There may be a limitation or requirement specific to your version of Unity Catalog or Azure Databricks Workspace that is causing the issue (this feature is in Public Preview).&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this helps. Cheers, Lou.&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 May 2025 18:30:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118939#M45747</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-05-12T18:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118990#M45757</link>
      <description>&lt;P&gt;1. My managed identity has these roles, as you can see in the screenshot&lt;/P&gt;&lt;P&gt;2. I am the owner and have MANAGE--I'm also the account and workspace admins.&lt;/P&gt;&lt;P&gt;3. Yes, UC is enabled and I followed the documentation exactly as you can see in the screenshots&lt;/P&gt;&lt;P&gt;4. You can see this has been done in the screenshots&lt;/P&gt;&lt;P&gt;5. I don't have this option, as you can see in the last screenshot&lt;/P&gt;&lt;P&gt;6. I don't have the option to enable file events which is what this post is about&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 03:40:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/118990#M45757</guid>
      <dc:creator>v1b3_c0d3rXXX</dc:creator>
      <dc:date>2025-05-13T03:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/121166#M46363</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/101170"&gt;@v1b3_c0d3rXXX&lt;/a&gt;&amp;nbsp;- This does seem to be a feature that needs to be enabled on the Databricks side after talking with our Databricks solutions engineer. I recommend reaching out to them to see if they can enable it for your account.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 22:13:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/121166#M46363</guid>
      <dc:creator>Stentone</dc:creator>
      <dc:date>2025-06-06T22:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/127397#M47949</link>
      <description>&lt;P&gt;I managed to resolve it with Microsoft Azure support.&lt;/P&gt;&lt;P&gt;The root cause is that even though everything looks OK by the guide, if something was off while setting up in bricks, the setup may, and likely will, get broken behind the scenes. It will produce cryptic errors for you to chase your own tale.&lt;/P&gt;&lt;P&gt;I faced a similar issue, but with a different error, when re-creating setup in production. The solution below worked there too.&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;1. Enable EventGrid provider in the subscription.&lt;/P&gt;&lt;P&gt;2. Add permissions for the connector to the storage account:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dimitry_0-1754351605646.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18726i52532E883CA6A63C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dimitry_0-1754351605646.png" alt="Dimitry_0-1754351605646.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Note that "Event Grid" one is not appearing in UI but to be assigned by the CLI. UI allows it in the subscription level though. Script below will help you.&lt;/P&gt;&lt;P&gt;3. Go into storage account queues and kill the one created by bricks before:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dimitry_1-1754351844946.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18727i3B47BF7A043199D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dimitry_1-1754351844946.png" alt="Dimitry_1-1754351844946.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. &lt;STRONG&gt;Redo the Databricks connector and external location.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This is critical. You need to delete and recreate them in bricks.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Note that you can autofill the resource group from the connector. Be careful, it only works if the connector in the same resource group as the storage account. Otherwise fill the resource group name manually.&lt;/P&gt;&lt;P&gt;5. Test file events in the connector and also create a test job watching the files, to POC the events.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have drafted following PS script to assign permission to the storage account:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$connector_id = "&amp;lt;guid&amp;gt;"
$storage_id = "/subscriptions/&amp;lt;sub guid&amp;gt;/resourceGroups/&amp;lt;rg guid&amp;gt;/providers/Microsoft.Storage/storageAccounts/&amp;lt;adls name&amp;gt;"


New-AzRoleAssignment -ObjectId $connector_id -RoleDefinitionName "EventGrid EventSubscription Contributor" -Scope $storage_id

New-AzRoleAssignment -ObjectId $connector_id -RoleDefinitionName "Storage Account Contributor" -Scope $storage_id

New-AzRoleAssignment -ObjectId $connector_id -RoleDefinitionName "Storage Blob Data Contributor" -Scope $storage_id

New-AzRoleAssignment -ObjectId $connector_id -RoleDefinitionName "Storage Queue Data Contributor" -Scope $storage_id&lt;/LI-CODE&gt;&lt;P&gt;ref:&amp;nbsp;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/answers/questions/4376616/databricks-cannot-activate-file-events-for-externa" target="_blank"&gt;Databricks - Cannot activate File Events for External Location / ADLS V2 - Microsoft Q&amp;amp;A&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 00:10:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/127397#M47949</guid>
      <dc:creator>Dimitry</dc:creator>
      <dc:date>2025-08-05T00:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/139794#M51295</link>
      <description>&lt;P&gt;I also have an external location that is a ADLS v2 however from databricks I only want to grant read access to the managed identity. I want to use file arrival trigger but want to have option of using more than 50 such triggers.&amp;nbsp;&lt;BR /&gt;Is it possible to only grant&amp;nbsp;&lt;STRONG&gt;Storage Blob Data Reader&lt;/STRONG&gt; and &lt;STRONG&gt;EventGrid EventSubscription Contributor&lt;BR /&gt;&lt;/STRONG&gt;to enable file events for the external locations?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 10:21:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/139794#M51295</guid>
      <dc:creator>Drupe</dc:creator>
      <dc:date>2025-11-20T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/165009#M55373</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am also facing some issue with the "file arrival" trigger on one of my environments.&lt;BR /&gt;Its strange that it kept running fine until today where it broke.&amp;nbsp;&lt;BR /&gt;I always only had the "Storage Blob Data Contributor" for my Managed Identity ( Access Connector) and never had the other ones mentioned above?&amp;nbsp;&lt;BR /&gt;Could you please suggest on why would this work well until now?&lt;BR /&gt;&lt;BR /&gt;I do not see any queues or event subscription being created for my envionments where this passed.&lt;BR /&gt;&lt;BR /&gt;"""&lt;BR /&gt;An error occurred while processing file events in the external location associated with '/path/to/Volume': INVALID_STATE: 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. Please ensure the IAM roles Storage Account Contributor, Storage Blob Data Contributor, EventGrid EventSubscription Contributor, Storage Queue Data Contributor are correctly assigned to your managed identity (or service principal, if used). Original error from the cloud provider: If you are using a StorageSharedKeyCredential, and the server returned an error message that says 'Signature did not match', you can compare the string to sign with the one generated by the SDK. To log the string to sign, pass in the context key value pair 'Azure-Storage-Log-String-To-Sign': true to the appropriate method call. If you are using a SAS token, and the server returned an error message that says 'Signature did not match', you can compare the string to sign with the one generated by the SDK.&lt;BR /&gt;&lt;BR /&gt;"""&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 07:22:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/165009#M55373</guid>
      <dc:creator>khushboo2002</dc:creator>
      <dc:date>2026-08-06T07:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/165010#M55374</link>
      <description>&lt;P&gt;hi, I understand it depends if you use events out of the box, subscribe to your own queue or just look for file changes (this just counts number of files in the path including sub-folders to trigger)&lt;/P&gt;&lt;P&gt;If you listen to the events created by Databricks, you need all ones I mentioned, so it can create queues.&amp;nbsp;I think the role that can do all of it is just "Contibutor", not "&lt;SPAN&gt;Storage Blob Data Contributor", if you go granular you need all mentioned roles.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- If "&lt;SPAN&gt;Enable file events" is &lt;STRONG&gt;disabled&lt;/STRONG&gt;,&amp;nbsp;&lt;/SPAN&gt;"File Arrival" trigger will just poll file number periodically and won't use queue -&amp;gt; hopefully will work with "&lt;SPAN&gt;Storage Blob Data Contributor"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- if file events &lt;STRONG&gt;enabled&lt;/STRONG&gt;, you can test in the external locations / location / test connection. Without these roles or higher admin type role for your connector it won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is your case?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 07:52:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/165010#M55374</guid>
      <dc:creator>Dimitry</dc:creator>
      <dc:date>2026-08-06T07:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Enabling File Events For An External Location</title>
      <link>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/165079#M55385</link>
      <description>&lt;P&gt;Thanks Dimitry,&lt;BR /&gt;&lt;BR /&gt;Its the first one . Surprising enough, we got this issue even with the first one. I am not sure why. I will look at it further next week and reach out with observations if any&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 08:40:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trouble-enabling-file-events-for-an-external-location/m-p/165079#M55385</guid>
      <dc:creator>khushboo2002</dc:creator>
      <dc:date>2026-08-07T08:40:23Z</dc:date>
    </item>
  </channel>
</rss>

