<?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 DBR 15.4 LTS Beta Unable to Write Files to Azure Storage Account in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/81923#M36451</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I believe I might have identified a bug with DBR 15.4 LTS Beta. The basic task of saving data to a delta table, as well as an even more basic operation of saving a file to cloud storage, is failing on 15.4, but working perfectly fine on 15.3. Some other details:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;it seems like this is only happening on a single node, single user cluster (still has the Unity Catalog tag)&lt;/LI&gt;&lt;LI&gt;the Storage Credential to this entire storage account is configured using a system-assigned managed identity, per &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/azure-managed-identities" target="_self"&gt;Databricks recommendation here&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;the access connector identity has been granted the following roles in the storage account (again, following the article): &lt;EM&gt;Storage Account Contributor, Storage Blob Data Contributor, Storage Queue Data Contributor&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;running the exact same command, on the exact same cluster fails on 15.4 but succeeds with 15.3&lt;/LI&gt;&lt;LI&gt;I'm running the notebook as my personal user, and I have ALL PRIVILEGES on this &lt;EM&gt;dev_sandbox&lt;/EM&gt; catalog&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;the command - a simple saveAsTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;table_path = "dev_sandbox.files_metadata.bntestsave"
df.write.format("delta").mode("overwrite").saveAsTable(table_path)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error message, with some identifiable info redacted:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Failed to save file to /Volumes/[REDACTED]. Error: An error occurred while calling o1607.save.
: org.apache.spark.SparkException: Exception thrown in awaitResult: Failed with shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.contracts.exceptions.SASTokenProviderException while processing file/directory :[[REDACTED]/_committed_4591969627371730351] in method:[Failed to acquire a SAS token for write on [REDACTED]/_committed_4591969627371730351 due to com.databricks.unity.error.MissingCredentialScopeException: [UNITY_CREDENTIAL_SCOPE_MISSING_SCOPE] Missing Credential Scope. Failed to find Unity Credential Scope.. SQLSTATE: XXKUC]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 16:51:20 GMT</pubDate>
    <dc:creator>Brian-Nowak</dc:creator>
    <dc:date>2024-08-05T16:51:20Z</dc:date>
    <item>
      <title>DBR 15.4 LTS Beta Unable to Write Files to Azure Storage Account</title>
      <link>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/81923#M36451</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I believe I might have identified a bug with DBR 15.4 LTS Beta. The basic task of saving data to a delta table, as well as an even more basic operation of saving a file to cloud storage, is failing on 15.4, but working perfectly fine on 15.3. Some other details:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;it seems like this is only happening on a single node, single user cluster (still has the Unity Catalog tag)&lt;/LI&gt;&lt;LI&gt;the Storage Credential to this entire storage account is configured using a system-assigned managed identity, per &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/azure-managed-identities" target="_self"&gt;Databricks recommendation here&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;the access connector identity has been granted the following roles in the storage account (again, following the article): &lt;EM&gt;Storage Account Contributor, Storage Blob Data Contributor, Storage Queue Data Contributor&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;running the exact same command, on the exact same cluster fails on 15.4 but succeeds with 15.3&lt;/LI&gt;&lt;LI&gt;I'm running the notebook as my personal user, and I have ALL PRIVILEGES on this &lt;EM&gt;dev_sandbox&lt;/EM&gt; catalog&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;the command - a simple saveAsTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;table_path = "dev_sandbox.files_metadata.bntestsave"
df.write.format("delta").mode("overwrite").saveAsTable(table_path)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error message, with some identifiable info redacted:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Failed to save file to /Volumes/[REDACTED]. Error: An error occurred while calling o1607.save.
: org.apache.spark.SparkException: Exception thrown in awaitResult: Failed with shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.contracts.exceptions.SASTokenProviderException while processing file/directory :[[REDACTED]/_committed_4591969627371730351] in method:[Failed to acquire a SAS token for write on [REDACTED]/_committed_4591969627371730351 due to com.databricks.unity.error.MissingCredentialScopeException: [UNITY_CREDENTIAL_SCOPE_MISSING_SCOPE] Missing Credential Scope. Failed to find Unity Credential Scope.. SQLSTATE: XXKUC]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 16:51:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/81923#M36451</guid>
      <dc:creator>Brian-Nowak</dc:creator>
      <dc:date>2024-08-05T16:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: DBR 15.4 LTS Beta Unable to Write Files to Azure Storage Account</title>
      <link>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/82142#M36535</link>
      <description>&lt;P&gt;We have the same issue at 15.3 ML. It occurs when the output table is relatively large (or has multiple partitions -&amp;nbsp; have not been able to validate). Using `.limit(200000)` worked in our case, but that might be because then there is only 1 partition.&lt;/P&gt;&lt;P&gt;Confirm that it works with 14.3 LTS&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 09:22:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/82142#M36535</guid>
      <dc:creator>wout__</dc:creator>
      <dc:date>2024-08-07T09:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: DBR 15.4 LTS Beta Unable to Write Files to Azure Storage Account</title>
      <link>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/82159#M36540</link>
      <description>&lt;P&gt;We have the same issue since yesterday (6/8/2024), running on DBR 15.3 or 15.4 LTS Beta. It seems to have something to do with large table's indeed. Tried with multiple .partition sizes.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 09:55:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/82159#M36540</guid>
      <dc:creator>Ricklen</dc:creator>
      <dc:date>2024-08-07T09:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: DBR 15.4 LTS Beta Unable to Write Files to Azure Storage Account</title>
      <link>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/82177#M36542</link>
      <description>&lt;P&gt;Since I can't edit my previous post anymore, I can confirm it works with 14.3 LTS.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 11:03:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbr-15-4-lts-beta-unable-to-write-files-to-azure-storage-account/m-p/82177#M36542</guid>
      <dc:creator>Ricklen</dc:creator>
      <dc:date>2024-08-07T11:03:14Z</dc:date>
    </item>
  </channel>
</rss>

