I need to dynamically provide the file path in a Copy Data Activity in Azure Data Factory. This is the code that I have written
@concat('PtkUsage/',formatDateTime(pipeline().parameters.windowStart,'yyyy'),'/',formatDateTime(pipeline().parameters.windowStart,'MM'),'/',formatDateTime(pipeline().parameters.windowStart,'dd'))
By using this I am getting the below error that says the character '/' is not expected. So how do I handle this?
{"error":{"code":"BadRequest","message":"ErrorCode=InvalidTemplate, ErrorMessage=The expression 'PtkUsage/formatDateTime(pipeline().parameters.windowStart,'yyyy')/formatDateTime(pipeline().parameters.windowStart,'MM')/formatDateTime(pipeline().parameters.windowStart,'dd')' is not valid: the string character '/' at position '8' is not expected."","target":"","details":null}}