Unanswered Topic Issue Adding Run Date to Exported File Name RSS Feed Icon

You must be logged in to reply to this topic.

Joined: September 1, 2016
Posts: 2
I'm trying to add a timestamp to the end of a file name but I just get "~c9de7dbb69b74467914b0ecbe28ff638" for the exported file name. this is what I'm using: D:\iMIS_Reports\Report_Export\NMC_02_${now}.pdf
Arcana Development Staff
Joined: November 6, 2015
Posts: 390

Report Commander exports to a temporary file (which is the file name that you're seeing in the log) and then renames the file to the final name. It's the rename that's failing. The reason is that the ${now} variable formats the date/time with colons, which aren't valid in a file name, so it fails with the "The given path's format is not supported" error.

To avoid this, use the now function instead of the now variable, and specify a format that doesn't contain invalid characters for a file name. For example,

@now("yyyy-MM-dd HH-mm-ss")

This topic is locked due to its age. Please start a new topic and reference this one if appropriate.