I am trying to give a report that is exported from AwareIM a file name that contains a date time stamp as part of the name. The issue is that the AS_STRING(CURRENT_TIMESTAMP) does not work properly. I can get the file to output named with a date stamp as part of the name but not the date and time.
If I use CURRENT_DATE instead of CURRENT_TIMESTAMP the process will export the report without errors.
This works:
EXPORT DOCUMENT DailyReport TO File 'C:\Temp\DailyReport'+(AS_STRING(CURRENT_DATE))+'.xls' as xls
This does not:
EXPORT DOCUMENT DailyReport TO File 'C:\Temp\DailyReport'+(AS_STRING(CURRENT_TIMESTAMP))+'.xls' as xls
Here is the error that is generated when the process is kicked off:
'Exception exporting document. The parameter is incorrect'
SystemLog information:
08:44:53,390 ERROR test#admin -Execution Exception after starting process ExportDailyReport1 message Exception exporting document The parameter is incorrect