Srinivas
11/14/2025, 8:19 AMwith KedroSession.create(project_path=project_path,package_name="package", env="end") as session:
session.run(node_names=["ds1"
])
and the connection details are like this
ds1:
type: "${globals:datatypes.csv}"
filepath: "abfss://<container>@<acount_name>.<http://dfs.core.windows.net/raw_data/ds1.csv.gz|dfs.core.windows.net/raw_data/ds1.csv.gz>"
fs_args:
account_name: "accountName"
sas_token: "sas_token"
layer: raw_data
load_args:
sep: ";"
escapechar: "\\"
encoding: "utf-8"
compression: gzip
#lineterminator: "\n"
usecols:
The token is fine, but I am getting this exception
DatasetError: Failed while loading data from data set CSVDataset(filepath=, load_args={}, protocol=abfss, save_args={'index': False}). Operation returned an invalid status 'Server failed to authenticate the request. Please refer to the information in the www-authenticate header.' ErrorCode:NoAuthenticationInformationElena Khaustova
11/14/2025, 11:40 AMabfss:// (ADLS Gen2 via Azure AD authentication) but providing a SAS token, which only works with abfs:// or https://. While abfss:// (encrypted Azure Data Lake) expects OAuth / AAD token, not SAS.Elena Khaustova
11/14/2025, 11:41 AMabfss:// to abfs://Elena Khaustova
11/14/2025, 11:43 AMSrinivas
11/14/2025, 1:07 PMElena Khaustova
11/14/2025, 1:13 PMfs = fsspec.filesystem("abfss", **fs_args)
So something like this should give you the same error
import fsspec
fs = fsspec.filesystem(
"abfss",
account_name="myaccount",
sas_token="<valid_sas>"
)
<http://fs.ls|fs.ls>("<abfss://container@myaccount.dfs.core.windows.net/>")