<?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: Error with file events in external location (via pub/sub) in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/error-with-file-events-in-external-location-via-pub-sub/m-p/125942#M3695</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/175699"&gt;@hmnilp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you contact databricks, may be there is a feature to be enabled.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 05:45:13 GMT</pubDate>
    <dc:creator>Khaja_Zaffer</dc:creator>
    <dc:date>2025-07-22T05:45:13Z</dc:date>
    <item>
      <title>Error with file events in external location (via pub/sub)</title>
      <link>https://community.databricks.com/t5/administration-architecture/error-with-file-events-in-external-location-via-pub-sub/m-p/125698#M3679</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;I am new here and in Databricks world.&lt;/P&gt;&lt;P&gt;I was trying to enable a trigger event on file uploading in GCP bucket in order to start a job following this tutorial:&amp;nbsp;&lt;A href="https://docs.databricks.com/gcp/en/connect/unity-catalog/cloud-storage/manage-external-locations#-recommended-enable-file-events-for-an-external-location" target="_blank"&gt;https://docs.databricks.com/gcp/en/connect/unity-catalog/cloud-storage/manage-external-locations#-recommended-enable-file-events-for-an-external-location&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So I had created a role with those permissions and then I assigned that role to the service account of the storage credentials. An important note: I didn't find that SA in the IAM entities list so I had to use the "grant access" button, insert the interested service account and assign the role created to it.&lt;/P&gt;&lt;P&gt;After all the operations listed, in the WS dashboard I had enabled the file events for the external location and I tested the connection with this result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hmnilp_0-1752831905771.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18292i09488697820EE779/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hmnilp_0-1752831905771.png" alt="hmnilp_0-1752831905771.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the GCP log explorer I saw these logs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hmnilp_1-1752832082230.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18293i20DD02E184D63414/image-size/large?v=v2&amp;amp;px=999" role="button" title="hmnilp_1-1752832082230.png" alt="hmnilp_1-1752832082230.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Where we can notice that the topic was created, the subscription was created too and then a non-databricks service account tries to access and brokes everything. The logs after are a repetition of: service account that tries to access, databricks that tries to create a topic and a subscription that already exists.&lt;/P&gt;&lt;P&gt;In IAM entities list I found the only service account possible for that pattern:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hmnilp_3-1752832431023.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18295i8C471D1CB7FE571A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hmnilp_3-1752832431023.png" alt="hmnilp_3-1752832431023.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Finally the log of the error on the service account is the following json (&lt;SPAN&gt;anonymized&amp;nbsp;&lt;/SPAN&gt;with *):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "protoPayload": {
    "@type": "type.googleapis.com/google.cloud.audit.AuditLog",
    "status": {
      "code": 7,
      "message": "The service account 's...3@gs...' does not have permission to publish messages to to the Cloud Pub/Sub topic '//pubsub.googleapis.com/projects/*/topics/csms-topic-by-path-*', or that topic does not exist."
    },
    "authenticationInfo": {
      "principalEmail": "db-uc-credential-*-*@uc-*.iam.gserviceaccount.com"
    },
    "requestMetadata": {
      "callerIp": "gce-internal-ip",
      "callerSuppliedUserAgent": "gcloud-java/unresolved Google-API-Java-Client/1.34.0 Google-HTTP-Java-Client/1.43.3 (gzip),gzip(gfe)",
      "requestAttributes": {
        "time": "2025-07-18T08:06:53.934327849Z",
        "auth": {}
      },
      "destinationAttributes": {}
    },
    "serviceName": "storage.googleapis.com",
    "methodName": "storage.buckets.update",
    "authorizationInfo": [
      {
        "resource": "projects/_/buckets/*",
        "permission": "storage.buckets.update",
        "granted": true,
        "resourceAttributes": {}
      }
    ],
    "resourceName": "projects/_/buckets/*",
    "resourceLocation": {
      "currentLocations": [
        "*"
      ]
    }
  },
  "insertId": "17ucpftequabn",
  "resource": {
    "type": "gcs_bucket",
    "labels": {
      "bucket_name": "*",
      "project_id": "*",
      "location": "*"
    }
  },
  "timestamp": "2025-07-18T08:06:53.928213630Z",
  "severity": "ERROR",
  "logName": "projects/*/logs/cloudaudit.googleapis.com%2Factivity",
  "receiveTimestamp": "2025-07-18T08:06:55.756659669Z"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;(the topic obviously exists)&lt;/P&gt;&lt;P&gt;Is it correct that uses that service account instead of the one created by databricks?&amp;nbsp;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 09:59:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/error-with-file-events-in-external-location-via-pub-sub/m-p/125698#M3679</guid>
      <dc:creator>hmnilp</dc:creator>
      <dc:date>2025-07-18T09:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error with file events in external location (via pub/sub)</title>
      <link>https://community.databricks.com/t5/administration-architecture/error-with-file-events-in-external-location-via-pub-sub/m-p/125942#M3695</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/175699"&gt;@hmnilp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you contact databricks, may be there is a feature to be enabled.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 05:45:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/error-with-file-events-in-external-location-via-pub-sub/m-p/125942#M3695</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-07-22T05:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error with file events in external location (via pub/sub)</title>
      <link>https://community.databricks.com/t5/administration-architecture/error-with-file-events-in-external-location-via-pub-sub/m-p/126211#M3713</link>
      <description>&lt;P&gt;Hi! Thanks in advance for your answer.&lt;BR /&gt;No I didn't contact databricks. I thought that I was missing a piece somewhere.&lt;/P&gt;&lt;P&gt;I will do it for sure!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 14:10:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/error-with-file-events-in-external-location-via-pub-sub/m-p/126211#M3713</guid>
      <dc:creator>hmnilp</dc:creator>
      <dc:date>2025-07-23T14:10:07Z</dc:date>
    </item>
  </channel>
</rss>

