@Shobna Lata Welcome to Microsoft Q&A forum and thanks for reaching out here.
In addition to Amira Bedhiafi inputs, please validate below prerequisites if you are accessing External tables from ADF.
- While creating the external data source, have you used any
Database Scoped Credential
? In case if you haven't created any Database Scoped Credential then please create a database scoped credential with `Managed Service Identity - Then use that credential for creating the external data source as shown below:
-- Create a database scoped credential with Managed Service Identity.
CREATE DATABASE SCOPED CREDENTIAL NYCGreenTaxiCredentialADF
WITH
IDENTITY = 'Managed Service Identity';
-- Create External Data Source with Credential created in previous step.
IF NOT EXISTS (SELECT * FROM sys.external_data_sources WHERE name = 'NYCGreenTaxiData')
CREATE EXTERNAL DATA SOURCE [NYCGreenTaxiData]
WITH (
LOCATION = 'abfss://<containerName>@sharedADLSGen2.dfs.core.windows.net',
CREDENTIAL = NYCGreenTaxiCredentialADF
)
GO
- After creating the external data source using credential, then create the external table using this external data source.
- Then go to you ADF linked service and set up the Synapse Analytics Linked service configuration using SQL auth credentials and try to preview the data. (Please ensure that your Synapse Workspace Managed identity has Blob storage contributor role assigned)
I have reproduced the error message you have experienced by creating an External Data source without database scoped credentials and it throws the same error message. Then in order to overcome the above error, I have created a Database scoped credential using `Managed Service Identity and then used that credential to create the external data source and then was able to access the external table from ADF without any issues.
Hope this info helps. Let us know if you have further query.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.