Is there a way to disable a COPY Activity

BK 6 Reputation points
2021-09-30T14:01:07.437+00:00

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?
Thanks

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

4 answers

Sort by: Most helpful
  1. Kunal Rathi 6 Reputation points
    2023-06-30T05:07:31.3333333+00:00

    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 29,896 Reputation points MVP
    2021-09-30T14:50:41.087+00:00

    hey,
    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
    2021-09-30T14:52:55.217+00:00

    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.

    https://stackoverflow.com/questions/50243988/disable-activity-in-azure-data-factory-pipeline-without-removing-
    it

    0 comments No comments

  4. Andrew Thompson 0 Reputation points
    2023-06-16T11:51:02.2566667+00:00

    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