Automation Anywhere 360 - illegal char : Trying to add date to file name

Badge +2



Can someone please assist me with this? I believe I have tried everything.

I would like to add the date/time to the file name so the user can read the log file name and know when the bot ran. However, when I run the bot, I get the below error in the 2nd screenshot:

I have tried removing the colon, but still get an error. 


Best answer by Kolupuri.L1 8 May 2023, 14:52

View original

2 replies

Userlevel 6
Badge +15

Hi @hshtx ,

Please follow the below 

FilePath/$System:Day.Number:toString$_$System:Month.Number:toString$_$System:Year.Number:toString$_$System:Hour.Number:toString$_$System:Minute.Number:toString$.extension (for example .csv or .txt...etc)


Hi Dear,


please use the custom format  while converting system date to string and try saving the file name.The reason for error may be invalid characters in date of file name. verify that too

refer the Image attached.