Forum Discussion
Finan
15 years agoFrequent Contributor
You could start with a different date format, since ":" is not accepted in a filename, try:
The error occurs because of your line:
If I run the following line against your script, it returns a boolean, hence the boolean.plus.
The script seems to run if I add the following line at the end of createFolder(locatie):
shortDate = new Date().format("ddMMyyyy HHmmss").toString();The error occurs because of your line:
def file = new PrintWriter (createFolder(locatie)+getResponseFilename(shortDate,name))
If I run the following line against your script, it returns a boolean, hence the boolean.plus.
log.info createFolder(locatie)
The script seems to run if I add the following line at the end of createFolder(locatie):
return outputFolder