<?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: What controls when Synapse SQL (COPY INTO) uses SAS token? in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4714185#M9783</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/629400"&gt;@PanuO&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we haven't heard back from you, I hope you have raised a support ticket. At this time we are closing this thread. If you have any further issues, please start a new thread in the community forum, and we are here to assist you. Thankyou for your understanding and continuous support.&lt;/P&gt;
&lt;P&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vinay Pabbu&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 13:27:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-05-30T13:27:45Z</dc:date>
    <item>
      <title>What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4707231#M9596</link>
      <description>&lt;P&gt;I am using this simple Notebook code to &lt;STRONG&gt;write&lt;/STRONG&gt; data into Fabric &lt;STRONG&gt;Warehouse&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import com.microsoft.spark.fabric
from pyspark.sql.types import StructType, StructField, StringType, IntegerType

df = spark.createDataFrame([{
    "id": 1,
}], StructType([
    StructField("id", IntegerType(), True)
]))
df.write.mode("overwrite").synapsesql("SampleWarehouse.dbo.sampletbl")&lt;/LI-CODE&gt;&lt;P&gt;If I run this code in my own tenant everything works perfectly. Now if I run this exactly same code in another tenant, I will receive this error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2025-05-22 10:21:30,053 INFO FabricTDSSQLUtility$ [Thread-61]: SQL query to execute - COPY INTO [Sample].[dbo].[sampletbl]
FROM 'abfss://(guid)@i-api.onelake.fabric.microsoft.com/_system/artifacts/(guid)/(guid)/user/trusted-service-user/sampletbl1984837a384855/*.parquet'
WITH(
   FILE_TYPE = 'PARQUET',
   CREDENTIAL = (
       IDENTITY='Shared Access Signature',
       SECRET='?tid=(SAS TOKEN?)&amp;amp;st=2025-05-22T10:03:48Z&amp;amp;se=2025-06-05T10:33:48Z'))
2025-05-22 10:21:30,123 WARN FabricTDSSQLUtility$ [Thread-61]: Un-supported SQL error code 13832 for retry query execution.
2025-05-22 10:21:30,123 INFO FabricTDSSQLUtility$ [Thread-61]: Won't attempt any more SQL query execution.
2025-05-22 10:21:30,123 INFO FabricTDSSQLUtility$ [Thread-61]: Skipping an attempt to close TDS (JDBC) connection that belongs to an active transaction.
2025-05-22 10:21:30,123 ERROR FabricSparkTDSSQLCommitHandler$ [Thread-61]: Failed to commit to the data warehouse. Client Connection ID - (guid)
2025-05-22 10:21:30,123 ERROR FabricSparkTDSSQLCommitHandler$ [Thread-61]: Copying data into warehouse failed. Issuing a rollback.
2025-05-22 10:21:30,126 INFO FabricTDSTelemetryRegister [Thread-61]: Marked register as closed.&lt;/LI-CODE&gt;&lt;P&gt;In both tenants I have following settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PanuO_0-1748254866760.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1271302iAF156AC8A371C3E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PanuO_0-1748254866760.png" alt="PanuO_0-1748254866760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Warehouse is in same workspace as the notebook is in both tenants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Synapse SQL uses COPY INTO behind the scene and it seems to be not working with SAS token. How can I control which login method is used for that command?&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 10:27:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4707231#M9596</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2025-05-26T10:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4708547#M9648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/629400"&gt;@PanuO&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to Microsoft Fabric Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue isn't with the SAS token settings — those are preview features and mostly related to future support for user-delegated SAS tokens, which do not currently control the behavior of COPY INTO in Microsoft Fabric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the following Tenant Settings under Admin Portal &amp;gt; Tenant Settings:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Allow workspace managed identity to access OneLake&lt;/LI&gt;
&lt;LI&gt;Allow trusted workspace access to OneLake&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If these are disabled, Fabric cannot use MSI&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 08:29:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4708547#M9648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-27T08:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4708607#M9651</link>
      <description>&lt;P&gt;Ok, thank you for pointing out the SAS-token limit.&lt;BR /&gt;&lt;BR /&gt;I think there are no setting for "&lt;EM&gt;Allow trusted workspace access to OneLake&lt;/EM&gt;" and "&lt;EM&gt;Allow workspace managed identity to access OneLake&lt;/EM&gt;"&amp;nbsp;&lt;SPAN&gt;in Fabric anymore?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 08:58:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4708607#M9651</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2025-05-27T08:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4708642#M9656</link>
      <description>&lt;P data-start="122" data-end="434"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/629400"&gt;@PanuO&lt;/a&gt;,&lt;/P&gt;
&lt;P data-start="122" data-end="434"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="122" data-end="434"&gt;Thanks for pointing that out. Earlier advice was based on legacy configuration options that have since been deprecated. In the current Fabric model, access between the workspace and OneLake is managed automatically by the platform, and manual configuration of these trust settings is no longer available.&lt;/P&gt;
&lt;P data-start="122" data-end="434"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="436" data-end="571"&gt;The issue is likely due to either a trust issue between the workspace and OneLake, or a platform-level constraint preventing MSI usage.&lt;/P&gt;
&lt;P data-start="436" data-end="571"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="782" data-end="902"&gt;I recommended, raising a Microsoft support ticket&amp;nbsp;to investigate and resolve the issue.&lt;/P&gt;
&lt;P data-start="782" data-end="902"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="782" data-end="902"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="782" data-end="902"&gt;Regards,&lt;/P&gt;
&lt;P data-start="782" data-end="902"&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 09:22:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4708642#M9656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-27T09:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4714185#M9783</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/629400"&gt;@PanuO&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we haven't heard back from you, I hope you have raised a support ticket. At this time we are closing this thread. If you have any further issues, please start a new thread in the community forum, and we are here to assist you. Thankyou for your understanding and continuous support.&lt;/P&gt;
&lt;P&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vinay Pabbu&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 13:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4714185#M9783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-30T13:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4716202#M9808</link>
      <description>&lt;P&gt;I made a ticket and lets see what we can come up on this. I would like to update the resolution here if it something that others can apply.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 06:47:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4716202#M9808</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2025-06-02T06:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4735428#M10242</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/629400" target="_blank"&gt;@PanuO&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response As we haven't heard back from you, we are closing this thread for now. If you have any further issues, please start a new thread in the community forum, and we are here to assist you.&lt;/P&gt;
&lt;P&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 05:52:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4735428#M10242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-18T05:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4735436#M10243</link>
      <description>&lt;P&gt;The reason was this error was that workspace was using Private Links.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 05:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4735436#M10243</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2025-06-18T05:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: What controls when Synapse SQL (COPY INTO) uses SAS token?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4735449#M10244</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/629400"&gt;@PanuO&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the update — that makes perfect sense. Private Links often restrict the required access path.&lt;/P&gt;
&lt;P&gt;I suggest you to accept this post as the solution — it will help other community members facing similar problems to find the answer faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vinay Pabbu&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 06:05:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/What-controls-when-Synapse-SQL-COPY-INTO-uses-SAS-token/m-p/4735449#M10244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-18T06:05:45Z</dc:date>
    </item>
  </channel>
</rss>

