Forum Discussion

darshthakkar's avatar
darshthakkar
Valued Contributor
4 years ago
Solved

Using Date.now() while exporting files

Hi Team, While writing files via sftp, I’m unable to ingest Date.now() in the filename itself as seen in the snaps below: (1) Successful execution [passing pipeline parameter and selecting the ‘=...
  • siwadon's avatar
    siwadon
    4 years ago

    Understood but I don’t think it’s the problem with the static or dynamic reference if you can write other files to the FTP server without any problems. The only thing I could think of is that the filename contains illegal characters.

    Can you please try the expression below first?

    Date.now().toLocaleDateTimeString({"format":"yyyyMMddHHmmss"})