Hey,
You can use assert transformation property of dataflow for validations :
https://youtu.be/_NzWpTRxt0s
Or you can refer the below link end phase where in you can fail an activity in adf but with a successful pipeline run status:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
ADF - How to validate String is of valid DATE format?
Tried with Set Variables - formatdatetime. However, this will throw error when String is of invalid DATE format, any way to 'ignore' error so that pipeline will not appear as failed?
Or got other way of validating the string
Thanks.
Hey,
You can use assert transformation property of dataflow for validations :
https://youtu.be/_NzWpTRxt0s
Or you can refer the below link end phase where in you can fail an activity in adf but with a successful pipeline run status:
Hello @Leau Bee Lin ,
My understanding is that you would want to validate if a given string is of valid date format and then continue the flow of you pipeline execution. And for this you have tried validating it using a set variable activity but when it fails the activity fails and hence the pipeline. So you are looking for other alternate solution to continue executing the flow even though the validation fails. Please correct if my understanding is wrong.
In addition to @Nandan Hegde 's inputs you could also use an IF Condition activity
and in the condition, you can use the same dynamic expression that you have used in your set variable activity and if condition is met you can have the pipeline flow is the true
path and if the condition is not met you can continue the pipeline execution flow in the false
path
Hope this will help. Please let us know if any further queries.
------------------------------
Hello @Leau Bee Lin ,
We still have not heard back from you. Just wanted to check if the any of the below suggestions were helpful? If it answers your query, please do click
Accept Answer
and/orUp-Vote
, as it might be beneficial to other community members reading this thread. And, if you have any further query do let us know.