Invalid configuration value detected for using Azure Databricks autoloader

Thomas Bailey 11 Reputation points

The following is true of my setup:

  1. The cluster has its spark config set to apply the data lake's endpoint and account key.
  2. I have pre-deployed system topics & queue (via IaC ARM template YAML deployments) which are successfully receiving events. The example here is named 'queue1'.

The following masked & anonymised PySpark code errors with

Error while reading file<folder_name>/2022/07/14/<file_name>.json
Invalid configuration value detected for
Caused by: Invalid configuration value detected for

The schema variable is in preceding code but returns a valid struct-based schema.

#cloudFiles config  
cloudFiles_cfg = {  
  "cloudFiles.subscriptionId": "61******-****-****-****-***********7",  
  "cloudFiles.tenantId": "14******--****-****-****-***********f",  
  "cloudFiles.clientId": "07******-****-****-****-***********e",  
  "cloudFiles.clientSecret": "***************************",  
  "cloudFiles.resourceGroup": "rg-datahub",  
  "cloudFiles.connectionString" : "BlobEndpoint=;QueueEndpoint=;FileEndpoint=;TableEndpoint=;SharedAccessSignature=sv=2021-06-08&ss=bfqt&srt=sco&sp=rwdlacupx&se=2032-07-14T20:01:35Z&st=2022-07-14T12:01:35Z&spr=https&sig=***************************************",  
  "cloudFiles.storageAccount": "datalake",  
  "cloudFiles.format": "json",  
  "cloudFiles.useNotifications": "true",  
  "cloudFiles.queueName": "queue1",  
incoming = (spark.readStream  

On executing the stream, the follow behaviour occurs

  1. The stream initialises successfully.
  2. If the queue is empty, the stream continues to poll happily, returning blank results.
  3. As soon as a message is added to the queue, the stream processes the message but fails returning the error.
  4. After the stream has failed, the message is nonetheless dequeued.

Looking for reasons why this error would occur & potential resolutions.

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,276 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,854 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Thomas Bailey 11 Reputation points

    OK, a few minutes later I find the answer (keep doing this).

    Turns out account key is not sufficient for the abfss protocol, so I've added the following configs:


    This returns data now.