Hello @GouKong and welcome to Microsoft Q&A.
I have seen something similar happen when trying to mix pipeline expression inside a SQL statment/query.
Could you try:
let timestring = todatetime(@{convertFromUtc(pipeline().TriggerTime,'GMT Standard Time','yyyy-MM-dd HH:mm:ss.fff')});
The difference is adding the curly braces { }
. The curly braces serve two purposes.
- They help Data Factory tell where to start and stop interpreting the content as an expression, as opposed to text to pass to Kusto
- They convert the output of the contained expression to a string
Let us know whether this helps or not. If this solves your issue, please mark as accepted answer. If it does not help you, let us know, and we will look deeper into the issue.
Thank you for your patience.