Share via

"The specified filesystem does not exist" error accessing Azure Data Lake Storage Gen2 via SDK object.

glennox125 0 Reputation points
2023-02-19T00:45:04.56+00:00

I am using the SDK to connect to an Azure Data Lake Service Gen2 via an IAM Role Assignment using an app registration in Azure AD. The application is able to create the DataLakeFileSystemClient object okay, but when the application then tries to use that to create the DataLakeDirectoryClient object, I keep getting a System.AggregateException error: "The specified filesystem does not exist".

The DataLakeServiceClient uses accountname, clientid, clientsecret, and clientTennantID to initialize itself. I've checked that the app registration account is set up with the proper role assignment of Storage Blob Data Contributor (or Storage Blob Data Owner) for the various containers I've tried, but I keep getting this same exception from the different containers and different app registration accounts that I've tried. Is there a data lake setting that I have not enabled?

Thanks for any insights.

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.

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

Azure
Azure

A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.

0 comments No comments

2 answers

Sort by: Most helpful
  1. glennox125 0 Reputation points
    2023-02-19T08:15:34.28+00:00

    I think I found the issue. The following line 40 was commented out in the program.cs file.
    //CreateFileSystem(_dataLakeServiceClient).Wait();
    Uncommenting this out addressed that error.

    Was this answer helpful?


  2. glennox125 0 Reputation points
    2023-02-19T08:13:56.1866667+00:00

    I think I found the issue. The following line 40 was commented out in the program.cs file.
    //CreateFileSystem(_dataLakeServiceClient).Wait();
    Uncommenting this out addressed that error.

    Was this answer helpful?


Your answer

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