Hello @Divya Rajendran ,
Thanks for the question and using MS Q&A platform.
You could use the below expression for startDtTm & endDtTm respectively :
toTimestamp(left('@{addhours(pipeline().TriggerTime,-2)}',23), 'yyyy-MM-dd\'T\'HH:mm:ss.SSS')
toTimestamp(left('@{pipeline().TriggerTime}',23), 'yyyy-MM-dd\'T\'HH:mm:ss.SSS')
Code, @{addhours(pipeline().TriggerTime,-2)}
that needs to be run is passed as string. Left is used to handle the limitation of the DataFlow Expressions. The totimestamp
is used to convert the resultant string to type timestamp - that matches the parameter datatype.
I tested at my end and was able to get the above expression work successfully. The error is because there is a crossover between the dataflow expression and pipeline expression when using pipeline().triggerTime or utcnow(). The reference can be found in this document.
Hope this helps. Do let us know if you any further queries.
---------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.