Csv file name

Hello!
I want write DT to csv file. And I use assign before:
fileName = “Report_” + now.ToString +".csv"
Then in write csv activity in filePath: fileName
Bur I get error: Write CSV: The given path’s format is not supported.

When you convert now to a string, it contains colons “:”. Use this instead to get around the error:

fileName = "Report_" + now.ToString.Replace(":", "-") + ".csv"

1 Like