Azure Synapse - PandasDataframe to_csv ADLS Gen2 write fail 443 error

WZIAFP 157 Reputation points
2022-09-28T12:07:34.53+00:00

Following the Microsoft Tutorial here

my code is as below

import pandas  
  
data = pandas.DataFrame({'Name':['A', 'B', 'C', 'D'], 'ID':[20, 21, 19, 18]})  
data.to_csv('abfss://
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.
4,362 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ShaikMaheer-MSFT 37,896 Reputation points Microsoft Employee
    2022-09-29T09:00:23.12+00:00

    Hi @WZIAFP ,

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

    There is small issue in your code. Your storage account path should be in abfss://<containerName>@<storageaccountName>.dfs.core.windows.net/<path>

    Please check below code, Where I tried same, and it works fine.
    245937-image.png

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

    Hope this helps. Please let me know if any further queries.

    -----------------

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


  2. WZIAFP 157 Reputation points
    2022-10-03T09:52:50.297+00:00

    We found the issue to be associated with how private endpoints are managed and accessed from the studio.

    All storage accounts have private endpoints created as part of ARM template which we deploy via the azure portal. Unfortunately Synapse does not recognise private endpoints that are created outside of the studio.

    The resolution to this issue was to create additional private endpoint from within the synapse studio with access to the blob.core.windows.net endpoints.