<?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 [sql warehouse] Invalid configuration value detected for fs.azure.account.key with 'force' = 'true' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-invalid-configuration-value-detected-for-fs-azure/m-p/39664#M27051</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am getting the following&lt;SPAN&gt;&amp;nbsp;error when trying to copy data to databricks from an ADLS with SQL and using a SAS token&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Failure to initialize configuration for storage account &amp;lt;storage account&amp;gt;: Invalid configuration value detected for fs.azure.account.key&lt;/P&gt;&lt;P&gt;I am using an SQL Warehouse to copy the data from the ADLS. For this I am using a COPY_INTO.&lt;/P&gt;&lt;DIV class=""&gt;The following works fine :&lt;/DIV&gt;&lt;PRE&gt;COPY INTO `table` FROM ( SELECT _c0 as `c0` FROM 'abfss://&amp;lt;storageaccount&amp;gt;' WITH ( CREDENTIALS (AZURE_SAS_TOKEN = '***') ) ) FILEFORMAT = CSV    FORMAT_OPTIONS (  'delimiter'='\t', 'quote'='"', 'escape'='"', 'multiLine'='true' )  COPY_OPTIONS ('mergeSchema' = 'true')&lt;/PRE&gt;&lt;DIV class=""&gt;But this fails :&lt;/DIV&gt;&lt;PRE&gt;COPY INTO `table` FROM ( SELECT _c0 as `c0` FROM 'abfss://&amp;lt;storageaccount&amp;gt;' WITH ( CREDENTIALS (AZURE_SAS_TOKEN = '***') ) ) FILEFORMAT = CSV FORMAT_OPTIONS ( 'delimiter'='\t', 'quote'='"', 'escape'='"', 'multiLine'='true' ) COPY_OPTIONS ('mergeSchema' = 'true', 'force' = 'true')&lt;/PRE&gt;&lt;DIV class=""&gt;The only difference is in the copy options :&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;'force' = 'true'&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;The same SQL instruction works fine on a cluster.&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;The only place it is failing is on an SQL warehouse when 'force' is true.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Is someone facing the same issue ?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks&lt;/DIV&gt;</description>
    <pubDate>Fri, 11 Aug 2023 15:04:19 GMT</pubDate>
    <dc:creator>Yasser</dc:creator>
    <dc:date>2023-08-11T15:04:19Z</dc:date>
    <item>
      <title>[sql warehouse] Invalid configuration value detected for fs.azure.account.key with 'force' = 'true'</title>
      <link>https://community.databricks.com/t5/data-engineering/sql-warehouse-invalid-configuration-value-detected-for-fs-azure/m-p/39664#M27051</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am getting the following&lt;SPAN&gt;&amp;nbsp;error when trying to copy data to databricks from an ADLS with SQL and using a SAS token&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Failure to initialize configuration for storage account &amp;lt;storage account&amp;gt;: Invalid configuration value detected for fs.azure.account.key&lt;/P&gt;&lt;P&gt;I am using an SQL Warehouse to copy the data from the ADLS. For this I am using a COPY_INTO.&lt;/P&gt;&lt;DIV class=""&gt;The following works fine :&lt;/DIV&gt;&lt;PRE&gt;COPY INTO `table` FROM ( SELECT _c0 as `c0` FROM 'abfss://&amp;lt;storageaccount&amp;gt;' WITH ( CREDENTIALS (AZURE_SAS_TOKEN = '***') ) ) FILEFORMAT = CSV    FORMAT_OPTIONS (  'delimiter'='\t', 'quote'='"', 'escape'='"', 'multiLine'='true' )  COPY_OPTIONS ('mergeSchema' = 'true')&lt;/PRE&gt;&lt;DIV class=""&gt;But this fails :&lt;/DIV&gt;&lt;PRE&gt;COPY INTO `table` FROM ( SELECT _c0 as `c0` FROM 'abfss://&amp;lt;storageaccount&amp;gt;' WITH ( CREDENTIALS (AZURE_SAS_TOKEN = '***') ) ) FILEFORMAT = CSV FORMAT_OPTIONS ( 'delimiter'='\t', 'quote'='"', 'escape'='"', 'multiLine'='true' ) COPY_OPTIONS ('mergeSchema' = 'true', 'force' = 'true')&lt;/PRE&gt;&lt;DIV class=""&gt;The only difference is in the copy options :&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;'force' = 'true'&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;The same SQL instruction works fine on a cluster.&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;The only place it is failing is on an SQL warehouse when 'force' is true.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Is someone facing the same issue ?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Aug 2023 15:04:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/sql-warehouse-invalid-configuration-value-detected-for-fs-azure/m-p/39664#M27051</guid>
      <dc:creator>Yasser</dc:creator>
      <dc:date>2023-08-11T15:04:19Z</dc:date>
    </item>
  </channel>
</rss>

