Data Factory Scheduled Trigger not triggerring

kosmos 246 Reputation points
2023-05-16T10:55:33.1266667+00:00

I have a simple trigger

User's image

Should run at UTC+1 but the trigger is never running.

Things I tried:

  1. Running it every 1 minute --> Does not work

User's image

  1. Clicking on "Trigger Now" --> it works, but it is not scheduled trigger
  2. User's image

Why is it not working ?

Thanks in advance

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

2 answers

Sort by: Most helpful
  1. kosmos 246 Reputation points
    2023-05-16T11:29:47.0733333+00:00

    Hi @Vedant Desai

    The pipeline is expected to fail, since I want to check if the alerts are working. But it still should be triggered even if it fails.

    Please find the JSON of the trigger below:

    {
        "name": "tr_test",
        "properties": {
            "annotations": [],
            "runtimeState": "Started",
            "pipelines": [
                {
                    "pipelineReference": {
                        "referenceName": "test",
                        "type": "PipelineReference"
                    }
                }
            ],
            "type": "ScheduleTrigger",
            "typeProperties": {
                "recurrence": {
                    "frequency": "Day",
                    "interval": 1,
                    "startTime": "2023-05-15T07:18:00",
                    "timeZone": "W. Europe Standard Time",
                    "schedule": {
                        "minutes": [
                            0
                        ],
                        "hours": [
                            6
                        ]
                    }
                }
            }
        }
    }
    

    Please find the JSON of the pipeline below

    {
        "name": "test",
        "properties": {
            "activities": [
                {
                    "name": "create_watermark_table",
                    "type": "Script",
                    "dependsOn": [],
                    "policy": {
                        "timeout": "0.12:00:00",
                        "retry": 0,
                        "retryIntervalInSeconds": 30,
                        "secureOutput": false,
                        "secureInput": false
                    },
                    "userProperties": [],
                    "linkedServiceName": {
                        "referenceName": "ls_snf_rawDb_basicAuth",
                        "type": "LinkedServiceReference"
                    },
                    "typeProperties": {
                        "scripts": [
                            {
                                "type": "Query",
                                "text": "dsource_tablename VARCHAR(100)\n    , target_nameddddddddddddddddddd"
                            }
                        ],
                        "scriptBlockExecutionTimeout": "02:00:00"
                    }
                }
            ],
            "variables": {
                "table_name": {
                    "type": "String"
                }
            },
            "annotations": [],
            "lastPublishTime": "2023-03-02T12:37:48Z"
        },
        "type": "Microsoft.DataFactory/factories/pipelines"
    }
    
    1 person found this answer helpful.
    0 comments No comments

  2. Vedant Desai 656 Reputation points
    2023-05-16T12:32:21.06+00:00

    Hey there

    I've reviewed the JSON for your trigger and pipeline, and I think I can help you troubleshoot the issue.

    First, I noticed that your trigger is configured to run at UTC+1. However, the time zone for your Data Factory is set to UTC. This is likely why your trigger is not running at the expected time.

    To fix this, you need to change the time zone for your Data Factory to UTC+1. You can do this by following these steps:

    1. Go to the Azure portal and open your Data Factory.
    2. Click on the "Settings" tab.
    3. In the "Time zone" field, select "UTC+1".
    4. Click on the "Save" button.

    Once you have changed the time zone for your Data Factory, your trigger should start running at the expected time.

    If you are still having trouble with your trigger, please let me know and I will be happy to help further.

    Please don't forget to click on 130616-image.png

    and upvote 130671-image.png

    button if you find this 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.