Debugging bulk copy using for loop

Siddhanth Shetty 66 Reputation points
2020-10-06T15:51:46.64+00:00

I am working on a task that requires me to copy 348 tables from a SQL server to blob storage and then from blob storage to Azure Synapse SQL pool which is then visualized using Power BI. I made use of the 'Lookup' and 'ForEach' activities. When I run the process I see 698 items in the output. Most of them succeeded but around 4 copy activities from Blob storage to Azure Synapse have failed. I have a few questions regarding this:

  1. How do I find out which Table or step in the ForEach loop has caused the error?
  2. What exactly happens when one step fails because when I check the number of tables in the source and destination matches. I have not selected any fault tolerance options. What is the default behavior?

I appreciate any help! Thank you!

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
{count} votes

Accepted answer
  1. HarithaMaddi-MSFT 10,146 Reputation points
    2020-10-09T13:59:15.963+00:00

    Hi @Siddhanth Shetty ,

    Thanks for sharing more details.

    Below GIF explains the approach that can be used to copy the failed tables from an array variable into a file in blob. Source to copy activity can be a dummy file with 1/few rows as we will not be loading any source data but we will use variable to be copied into the blob as below.

    31217-arrayintoblobadf.gif

    Hope this helps! Please let us know for any queries and we will be glad to assist further.

    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.