Skip to main content
Answer

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

  • May 8, 2023
  • 2 replies
  • 500 views

Forum|alt.badge.img+2

 

Hello,

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

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.

Thanks,

Likhitha

2 replies

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+18
  • Most Valuable Pathfinder
  • May 8, 2023

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)


Forum|alt.badge.img
  • Cadet | Tier 2
  • Answer
  • May 8, 2023

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.

Thanks,

Likhitha