when we are giving variable in setvariables activity it is accepting only true condition in if condition activity wheare as in false condition data is not loading.what wou;ld be the reason

raghava thanneru 1 Reputation point
2022-01-24T07:52:42.43+00:00

167665-whatsapp-image-2022-01-24-at-10409-pm.jpeg

167761-whatsapp-image-2022-01-24-at-10409-pm.jpeg167762-whatsapp-image-2022-01-24-at-10406-pm-1.jpeg167733-whatsapp-image-2022-01-24-at-10407-pm.jpeg167763-whatsapp-image-2022-01-24-at-10408-pm.jpeg167771-whatsapp-image-2022-01-24-at-10409-pm-1.jpeg167753-whatsapp-image-2022-01-24-at-10409-pm.jpeg

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

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,376 Reputation points Microsoft Employee
    2022-01-25T22:00:51.84+00:00

    Hello @raghava thanneru
    ,
    Thanks for the ask and using Microsoft Q&A platform .

    As I understand the ask here is why the IF activity is not behaving the correct way , please let me know if thats not correct .

    When I reviewed the snapshots , I think i found the issue . We can get its fixed by one of the two ways called out below

    1. As you are comparing the value against the parameter , request you update the dynamic expression for the IF condition as

    @equals(pipeline().parameters.FIleType,'hp' )

    OR

    2 you can leave the dynamic exopression as it is but set the variable value to
    @pipeline().parameters.FIleType

    168512-image.png

    It worked for me .

    168523-image.png

    Please do let me know how it goes .
    Thanks
    Himanshu

    -------------------------------------------------------------------------------------------------------------------------

    1. Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    2. Want a reminder to come back and check responses? Here is how to subscribe to a notification
    3. If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments