nowYouSeeMe
nowYouSeeMe

Reputation: 1017

Azure Data Factory - if condition expression builder

I have a lookup that runs and returns a status of 0/1,as per below;

Status
1

I want to use the if condition, where if the value = 1, then execute another pipeline.

I am trying to do this using If Condition, with the following expression;

@equals(activity('Dependency Checker').output.firstRow,1)

enter image description here

But it does not evaluate as true and therefore run the activity.

When I check the output via debug, the output is as follows;

enter image description here

And it does not execute the pipeline (the true activity).

Edit -

Here is the output of the lookup, it is capturing the value 1;

enter image description here

I added a wait task to the true/false activities, and as a result, i've noticed it is initiating the False activity.

Upvotes: 0

Views: 5006

Answers (1)

Nandan
Nandan

Reputation: 4945

Based on the Lookup activity output: You need to use the below expression

@equals(activity('Dependency Checker').output.firstRow['Status'],'1')

Upvotes: 2

Related Questions