The template language expression 'trigger().outputs.windowStartTime'

Vineet S 1,390 Reputation points
2024-03-13T22:57:24.82+00:00

Hey

i am getting error in tumbling trigger of

" 'The template language expression 'trigger().outputs.windowStartTime' cannot be evaluated because property 'outputs' doesn't exist, available properties are 'name, startTime, endTime, scheduledTime, trackingId, clientTrackingId, originHistoryName, code, status'."

here us my tumbling trigger config

{
    "name": "trigger2prod",
    "properties": {
        "annotations": [],
        "runtimeState": "Started",
        "pipelines": [
            {
                "pipelineReference": {
                    "referenceName": "ProdShadowbaseDataLoad",
                    "type": "PipelineReference"
                },
                "parameters": {
                    "StartTime": "@trigger().outputs.windowStartTime",
                    "EndTime": "@trigger().outputs.windowEndTime"
                }
            }
        ],
        "type": "ScheduleTrigger",
        "typeProperties": {
            "recurrence": {
                "frequency": "Minute",
                "interval": 5,
                "startTime": "2024-03-13T22:29:00",
                "timeZone": "India Standard Time"
            }
        }
    }
}
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2024-03-14T07:34:12.63+00:00

    Hi Vineet S,

    Thanks for reaching out to Microsoft Q&A.

    Can you try with @trigger().startTime or @trigger().endTime ? pls check and let me know, meanwhile I will check and add up anything if i get.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.


  2. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2024-03-22T19:55:08.5466667+00:00

    Hello Vineet S,

    I see in your JSON, "type": "ScheduleTrigger", but you have mentioned tumbling windows trigger.

    If this is correct, please update the type as Tubmingwindowtrigger

    User's image

    from the below thread:

    trigger().outputs.windowStartTime is only valid when the pipeline is triggered through TumblingWindowTrigger.

    https://github.com/MicrosoftDocs/azure-docs/issues/5643

    I hope this answers your question. Please let me know if you still see any issues.

    0 comments No comments

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.