Unable to publish changes to data factory due to referenced trigger

Tinashe Chinyati 156 Reputation points

Hi all. I am trying to publish changes to data factory in my dev environment but I get this error:

Unable to delete 'PIPELINE_NAME' because it is being referenced by 'TRIGGER_NAME'. Please ensure 'TRIGGER_NAME' is not referencing 'PIPELINE_NAME' in Git and data factory mode.

The problem is the pipeline and the trigger have been deleted. Any solution to this? I cannot switch to Live mode and make changes and my Overwrite live mode is disabled.

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

1 answer

Sort by: Most helpful
  1. BhargavaGunnam-MSFT 25,801 Reputation points Microsoft Employee

    Hello @Tinashe Chinyati ,

    Welcome to the MS Q&A platform.

    Please correct me if my understanding is wrong. You are trying to publish from your main branch and getting an error "Please ensure 'TRIGGER_NAME' is not referencing 'PIPELINE_NAME' in Git and data factory mode."

    You seem to have deleted the pipeline and merged the changes to master without deleting the trigger in the Feature branch. Due to this reason, you are getting this error when trying to publish from the master branch(collaboration branch)

    If you are in the feature branch, your "overwrite live mode" is disabled.

    Can you go to the feature branch and see if the trigger is still present? If the trigger is present, please delete and create a new pull request to the master branch. Even if you don't see the trigger, please make a final pull request from your Feature branch to the master branch.

    Once the pull request is complete from the master branch, try to publish.

    Please let me know if you have any further questions.