Skip to main content

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.

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


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?


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


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.
 

 


Reply