Data factory CDC empty File creation

Franklin John 25 Reputation points
2023-05-18T16:31:02.7833333+00:00

We have created CDC in Azure to update data from SQL to the data lake It's working correctly whenever I update in SQL it creates a file in the data lake. But sometimes it creates empty files how to avoid those empty file creation ADF change data capture (preview)

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

Answer accepted by question author
  1. AnnuKumari-MSFT 34,566 Reputation points Microsoft Employee Moderator
    2023-05-19T11:39:42.9166667+00:00

    Hi Franklin John ,

    Welcome to Microsoft Q&A platform and thanks for posting your question here.

    As I understand your query, you are trying to perform change data capture in ADF for incremental records but it is creating empty files for you. Please let me know if that is not the correct understanding.

    I tried to repro your scenario by creating CDC with real time latency , however, I didn't get the same issue. Kindly share what latency have you set and have you enabled CDC in source table before the records were inserted?

    Observation : If your source table already had data before you enabled CDC in the source table in SQL db , then it is prone to create empty file in ADLS for the first run . Make sure to enable the CDC first and then insert records in the source table and use CDC capability from ADF.

    Hope it helps. Please revert back with any follow up query if you have , I can take it forward to internal team . Kindly accept the answer as accepted answer helps community as well. Thankyou


0 additional answers

Sort by: Most 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.