cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

[sql warehouse] Invalid configuration value detected for fs.azure.account.key with 'force' = 'true'

Yasser
New Contributor

Hello,

I am getting the following error when trying to copy data to databricks from an ADLS with SQL and using a SAS token

Failure to initialize configuration for storage account <storage account>: Invalid configuration value detected for fs.azure.account.key

I am using an SQL Warehouse to copy the data from the ADLS. For this I am using a COPY_INTO.

The following works fine :
COPY INTO `table` FROM ( SELECT _c0 as `c0` FROM 'abfss://<storageaccount>' WITH ( CREDENTIALS (AZURE_SAS_TOKEN = '***') ) ) FILEFORMAT = CSV    FORMAT_OPTIONS (  'delimiter'='\t', 'quote'='"', 'escape'='"', 'multiLine'='true' )  COPY_OPTIONS ('mergeSchema' = 'true')
But this fails :
COPY INTO `table` FROM ( SELECT _c0 as `c0` FROM 'abfss://<storageaccount>' WITH ( CREDENTIALS (AZURE_SAS_TOKEN = '***') ) ) FILEFORMAT = CSV FORMAT_OPTIONS ( 'delimiter'='\t', 'quote'='"', 'escape'='"', 'multiLine'='true' ) COPY_OPTIONS ('mergeSchema' = 'true', 'force' = 'true')
The only difference is in the copy options : 'force' = 'true'
 
The same SQL instruction works fine on a cluster. 
 
The only place it is failing is on an SQL warehouse when 'force' is true.
 
Is someone facing the same issue ?
 
Thanks
0 REPLIES 0
Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!