Share via

Errors when trying to create a storage event trigger in Synapse pipeline

Osama Ahmed 131 Reputation points
2022-12-18T13:16:06.763+00:00

Hello Everyone,

I am developing an ETL pipeline and part of the process is to copy .cvs files from ADLS gen 2 into Synapse dedicated pool. I have tried creating a Storage Event Trigger to run the pipeline whenever a new file is uploaded. However, I get the following error:

"The received access token is not valid: at least one of the claims 'puid' or 'altsecid' or 'oid' should be present. If you are accessing as application, please make sure service principal is properly created in the tenant"

The account I am using has onwer access and I went on and registered resource provider: Microsodt.EventGrid

Secondly, how can I ensure that only newly added files will be copied to the SQL pool rather than copying all the files available in the ADLS container?

271863-image.png

Azure SQL Database
Azure Data Lake Storage
Azure Data Lake Storage

An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.

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.

0 comments No comments

Answer accepted by question author

Alberto Morillo 35,506 Reputation points MVP Volunteer Moderator
2022-12-18T14:50:21.73+00:00

Have you registered the Data Factory resource provider (Microsoft.DataFactory)? Please try that.

271819-image.png

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Osama Ahmed 131 Reputation points
    2022-12-19T05:58:28.49+00:00

    Hello @Alberto Morillo . Thank you for your reply. Yes, I have registered the Data Factory resource provider (Microsoft.DataFactory) and I could publish the trigger.

    I would also like to know how I can ensure that only newly added files will be copied to the SQL pool rather than copying all the files available in the ADLS container. It is my first time working with Synapse Analytics workspace and its storage accounts.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.