Skip to main content
Solved

Base64 Encode not accepting file path variable


Forum|alt.badge.img+1

I am trying to encode the file using Base 64 encode package, it is working fine if I hard code the file path but the same is not working when I pass the variable. Please help me to fix this issue.

Best answer by Aaron.Gleason

You will need to check your bot runner logs to see the specific issue. There is nothing different between using a String variable and entering in a path manually, so there must be some disconnect. The bot runner logs are a great way to figure out exactly what happened.

C:\ProgramData\AutomationAnywhere\BotRunner\Logs

View original
Did this topic help answer your question?

4 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 545 replies
  • Answer
  • April 1, 2025

You will need to check your bot runner logs to see the specific issue. There is nothing different between using a String variable and entering in a path manually, so there must be some disconnect. The bot runner logs are a great way to figure out exactly what happened.

C:\ProgramData\AutomationAnywhere\BotRunner\Logs


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 1 reply
  • April 1, 2025

hi @Aaron - Thanks for your reply, I found that error is because of the space in file path. It is accepting the variable also if the file path doesn’t have any spaces but the same is throwing error when the file path is having space. 

Ex:

Accepting: c:\users\desktop\file.xlsx
Not Accepting: c:\users\desktop\project folder\file.xlsx

 

Could you please help me on this?


rbkadiyam
Flight Specialist | Tier 4
Forum|alt.badge.img+17
  • Flight Specialist | Tier 4
  • 587 replies
  • April 2, 2025

@MKR 6796 try this - c:\users\desktop\project%20folder\file.xlsx


Forum|alt.badge.img+4
MKR 6796 wrote:

hi @Aaron - Thanks for your reply, I found that error is because of the space in file path. It is accepting the variable also if the file path doesn’t have any spaces but the same is throwing error when the file path is having space. 

Ex:

Accepting: c:\users\desktop\file.xlsx
Not Accepting: c:\users\desktop\project folder\file.xlsx

 

Could you please help me on this?

Assign the file path via file variable, then use the file variable to encode it.
 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings