Datafactory CDC issue

Ravi Kumar 80 Reputation points
2023-07-03T03:01:21.0933333+00:00

When using CDC in adf, how to do the full load in the first time when my sink table doesn't have the data loaded. I don't see CDC is automatically taking care of the full load.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
Microsoft Security Microsoft Purview
0 comments No comments
{count} votes

Accepted answer
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-07-03T18:58:55.89+00:00

    @Ravi Kumar

    Welcome to the MS Q&A platform.

    Yes, you are correct that CDC does not automatically take care of the full load. You will need to perform a full load of the data into your sink table before you can start using CDC to capture changes.

    To perform a full load, you can use the Copy Data activity in ADF to copy the data from your source table to your sink table.

    Here are the steps to perform a full load using the Copy data activity in ADF:

    • Create a pipeline in ADF and add a Copy data activity to it.
    • In the Source tab, select the source dataset that contains the data you want to copy.
    • In the Sink tab, select the sink dataset that represents the destination table.
    • In the Mapping tab, select the columns you want to copy from the source to the sink.
    • In the Settings tab, set the Copy behavior to Preserve.
    • Run the pipeline to perform the initial load.

    After the initial load, you can use the Copy data activity with CDC enabled to perform incremental load.

    I hope this helps. Please let me know if you have any further questions.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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