Hi @Swapneel Hosur ,
Welcome to Microsoft Q&A platform and thanks for posting your query here.
As I understand your issue, you are receiving a syntax error while using if condition in set variable activity in ADF pipeline. Please let me know if that is not the case.
The issue here is that since you are using ',' for concatenating the strings , ADF is treating concatenated string as one of the parameters in if condition as parameters are separated by comma in if condition.
Instead of using concat , try string interpolation like below:
@if(greaterOrEquals(activity('Data flow1').output.runStatus.metrics.WriteReviewRecords.rowsWritten,2), '</b><br/><font color="red" Review Note: There are @{activity('Data flow1').output.runStatus.metrics.WriteReviewRecords.rowsWritten} record(s) where Claim Date exceeds Filing Date by 30 days </font>','')
To know more about String interpolation , kindly check: How to do string interpolation in Azure Data Factory
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- 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