How to fix error related to Filter data using Azure Data lake. First error is related to report_error. After I remove report variable, then there is error such that there is nothing like query expression.

Shivi Gargi 20 Reputation points
2023-03-28T18:24:19.07+00:00

User's image

User's image

User's image

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,459 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
689 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,782 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 38,441 Reputation points Microsoft Employee
    2023-03-29T10:04:05.3266667+00:00

    Hi Shivi Gargi,

    Thank you for posting your query in Microsoft Q&A Platform.

    From, your code it seems your not passing defined object to on_error parameter of query_blob() function.

    That means report_error variable which you are passing to on_error of query_blob() function is not holding anything. It should hold a function to be called on any processing errors returned by the service.

    Please check below documentation of query_blob function to understand more and make sure you pass parameter values correctly as expected by service.

    https://learn.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.blobclient?view=azure-python#azure-storage-blob-blobclient-query-blob

    Hope this helps. Please let me know how it goes.


    Please consider hitting Accept Answer button. Accepted answers help community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.