Forum Discussion
I have validated that I am able to write a file to the file share but I am encountering an issue with using a general expression while naming the file.
I am trying to timestamp the file with the following expression; + Date.now()+“.xml”. The pipe completes but there is no file in the location. When i change the syntax to:
+“Date.now()”+“.xml” the pipe completes with a file in the directory named:
Date.now().xml.
Any idea why it is having a problem with creating a file with the expression Date.now()?
The output preview even processes the expression correctly but still no file.
I’m wondering if it doesn’t like the colons in the time of the date format and an error is not being displayed. What if you replaced Date.now() with Date.now().toLocaleDateString({“timeZone”:“PST”, “format”:“yyyy-MM-dd”}) ?