Is there a way to disable a COPY Activity

BK 6 Reputation points

Hi All,
I have a pipeline that has 50 COPY tasks. Is there a way i can disable (NOT DELETE) to trouble shoot the failing COPY tasks? I have one COPY activity failing and when i click on debug it is processing all the 50 taking lot of time, instead is there a way where i can just rerun the failing COPY activity or disable the other COPY tasks?

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

4 answers

Sort by: Most helpful
  1. Kunal Rathi 6 Reputation points

    Microsoft recently announced that they are adding a feature to enable and disable activity in Azure Data Factory. This feature is in the preview currently.

    Select the activity which you want to disable, and under the general property window, set the Activity state radio button to inactive.
    Refer to this post for more details.

    1 person found this answer helpful.

  2. Nandan Hegde 31,026 Reputation points MVP

    Unfortunately there is no way to disable an activity within a pipeline in ADF v2.

    One way is you can delete all copy tasks except for the one which you want to test and click on debug.
    for debug you need not publish your changes and then once debug is done you van refresh the page thereby reverting back to original.

    Another way is to use Switch activity and have copy tasks within switch values and have a parameter value to switch across those values

    Note: There is a limitation of 40 activities per pipeline so not sure how you have 50 copy tasks ?

  3. Samy Abdul 3,366 Reputation points

    Hi @BK , You can't disable the copy activity. Please check the below link, although it is bit old but

    still relevant to your ask. Thanks a lot.

    0 comments No comments

  4. Andrew Thompson 0 Reputation points

    A dirty hack.

    If you add a Wait task and drag lines from the On Fail condition to the tasks you want to disable this will stop that task running.

    ( you may need to change other flow lines that rely on that task )

    0 comments No comments