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.
- dmiller7 years agoFormer Employee
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”}) ?
- AE042826 years agoNew Contributor
Good day,
I’m having a similar issue, I’m trying to write pdf files using a File Writer snap to a shared location, should I be using the file or the smb protocols? I tried both but unable to get it to work.
However the file gives a message saying it’s overwritten but the files are not in the folder, see below:
Thanks much.
- AE042826 years agoNew Contributor
Hi all, I got this to work. Thanks.