Hi @Viral Kothari ,
Welcome to Microsoft Q&A platform and thanks for posting your question.
As I understand your query, you are trying to write sql query in dataflow by passing the value for dataflow parameters via pipeline variable . Please let me know if my understanding about your requirement is incorrect.
I was able to reproduce the error you are facing. The reason why expression checkbox is disabled for parameter having date datatype is it is applicable only for string type parameter to convert as an expression.
You can try the following workaround to mitigate the issue:
- In dataflow , create the parameter having string datatype .
- In source transformation , use
toDate
function to convert the string value of dataflow parameter to date value. For Example:"select * from TableName where ColName='{toDate($Param1)}'"
- In pipeline which is invoking the dataflow, create the variable of type string
- In dataflow activity under Parameter tab, provide the date value under single quotes using dataflow expression and check the expression box.
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
Hi @Viral Kothari ,
Could you please share more clear picture of your data by sharing the screenshot of the dataflow or the SQL query which you are trying to use . Looking forward to your response. Thanks
Here is the snapshot of the SQL Query which requires parameter to be passed .
You can observe following.
Hope this helps.