Hi Martin,
Thanks for your reply.
let me add more details here.
we have the below services running under one subscription.
1) ADLS Gen2 Storage account
2) Synapse workspace with dedicated SQL
3) ADF workspace
after executing the below steps it started working
CREATE DATABASE SCOPED CREDENTIAL msi_cred
WITH IDENTITY = 'Managed Service Identity' ;
--Create external data source with abfss:// scheme for connecting to your Azure Data Lake Store Gen2 account
CREATE EXTERNAL DATA SOURCE ext_datasource_with_abfss
WITH
( TYPE = HADOOP ,
LOCATION = 'abfss://<ContainerName@<StorageAcountName>.dfs.core.windows.net' ,
CREDENTIAL = msi_cred
) ;
--Create external data source with above data source name( ext_datasource_with_abfss)
CREATE EXTERNAL TABLE [ext_sap].[syn_es_sap_mchb]
(
[MANDT] nvarchar NULL,
<* Rest of the columns>
)
WITH (DATA_SOURCE = [ext_datasource_with_abfss], LOCATION = N'raw/es/sap/MCHB', FILE_FORMAT = [SynapseParquetFormat], REJECT_TYPE = VALUE, REJECT_VALUE = 0 )
GO
To answer some of your questions
Q) you have both a Lookup pipeline activity, and a Synapse dedicated SQL(?), targeting the same external table in ALDS gen2.
Ans) yes, lookup activity was created in the ADF pipeline.
Q) One works fine, but the other does not. Did the broken one work before, or did it never work?
Ans) not sure I understand the question here. after creating the external table, we create the data copy activity connecting the source to the external table which created in synapse and then try to preview the source data set then its failed
Q) I'm unclear whether it is the lookup or the SQL or on-demand SQL which is failing.
Ans) actually data preview was failing when connecting the external table as a source.
Q) Is the "ADF data copy" run in the same workspace as the Synapse SQL query, or is it an actual, separate ADF?
Ans) we have both Synapse and ADF workspaces. it's separate
anyways with the above-executed steps working fine, now we are able to connect the synapse external table(ADLS pointing source) from ADF/Synapse pipelines as source tables.
Thanks for your reply.
Thanks,
Prabhakar