Hi All,
I am trying to create a zip file using create zip file smart service. After configuring the parameters (documents,folder,file name) i tried to execute the smart service but getting this error.
Exceptionnet.lingala.zip4j.exception.ZipException: java.io.FileNotFoundException: /usr/local/appian/ae/_admin/accdocs2/1001691/TestZip Attachments9/5/2023.zip (No such file or directory)
Any suggestions on how to fix this error.
Thanks in advance
Pradeep
Discussion posts and replies are publicly visible
The slashes in the file name look suspicious. Is that provided by you?
This is the file name TestZip Attachments&today() i have given.
today() becomes "9/5/2023" and the slash is an invalid character in file names. You will have to create the file name in a save way.
Thanks for the suggestion,replaced today() with text and it worked.
My trick for this is usually using a "filename safe" datestamp, like text(now(), "yyyy-mm-dd") (bonus, it's ISO 8601 compliance and sorts correctly). (h/t: XKCD)