Error when using pandas to write data to ADLS in Azure Synapse Analytics

Viet Tran 50 Reputation points
2024-04-27T05:39:32.5366667+00:00

Hi Mr/Mrs,

I want to use pandas to write dataframe to .csv file into ADLS, but I got this issue although I put the access key, it didn't work.

User's image

User's image

How can I fix this issue?

Thanks!

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
    2024-04-27T13:29:07.0466667+00:00

    I think your issue might be with the path : Your storage account path should be in abfss://<containerName>@<storageaccountName>.dfs.core.windows.net/<path>

    Please note, the authentication identity which you are using inside linked service of adls gen2 should have Storage Blob data contributor role.

    0 comments No comments

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.