Skip to main content
Solved

Where are the python logs stored ?

  • May 6, 2025
  • 7 replies
  • 88 views

Forum|alt.badge.img+11

Hi everyone,

I have an Automation Anywhere bot that calls a Python function. The result can only be “bot error” when it fails or “null” when it succeeds.

This is quite insufficient to analyze the error cause. For example recently I had an error caused by a missing package (the package requests), I had to open another interpreter to get the error and solve it through a simple pip install requests.

I gave a quick look at the C:\ProgramData\AutomationAnywhere\BotRunner\Logs folder but did not find anything about the python logs.

Does anybody know where those are stored ? It would really speed up the troubleshooting.

 

Regards,

Best answer by Aaron.Gleason

You can see the raw output from Python in the bot runner log files. They are not separated from the other logs.They are in this folder by default: C:\ProgramData\AutomationAnywhere\BotRunner\Logs

I put in a simple Python script designed to fail:

def leppard():
return 0/0

In the Bot_Launcher_AaronGleason.log I see:

2025-May-06 Tue 08:54:30.999 INFO  [BotRunner-b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13] - com.automationanywhere.sdk.python.functions.ExternalFunctionImpl {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - callFunction(ExternalFunctionImpl.java:73) - python-sdk-Received output from function 5330caad-68d6-4b72-b21e-e54e4e6bbb86 for process:28252
2025-May-06 Tue 08:54:31.002 INFO  [Thread-8] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) - 2025-05-06 08:54:31,002 - root - ERROR - Error Running bot function: Traceback (most recent call last):   File "C:\Users\AaronGleason\AppData\Local\AA\resources\b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13\5330caad-68d6-4b72-b21e-e54e4e6bbb86/wrapper.py", line 84, in main     result = method_to_call()              ^^^^^^^^^^^^^^^^   File "C:\Users\AaronGleason\AppData\Local\AA\resources\b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13\5330caad-68d6-4b72-b21e-e54e4e6bbb86\bot.py", line 2, in leppard     return 0/0            ~^~ ZeroDivisionError: division by zero
2025-May-06 Tue 08:54:31.002 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) - Traceback (most recent call last):
2025-May-06 Tue 08:54:31.003 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -   File "C:\Users\AaronGleason\AppData\Local\AA\resources\b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13\5330caad-68d6-4b72-b21e-e54e4e6bbb86/wrapper.py", line 84, in main
2025-May-06 Tue 08:54:31.003 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -     result = method_to_call()
2025-May-06 Tue 08:54:31.004 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -              ^^^^^^^^^^^^^^^^
2025-May-06 Tue 08:54:31.004 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -   File "C:\Users\AaronGleason\AppData\Local\AA\resources\b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13\5330caad-68d6-4b72-b21e-e54e4e6bbb86\bot.py", line 2, in leppard
2025-May-06 Tue 08:54:31.004 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -     return 0/0
2025-May-06 Tue 08:54:31.005 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -            ~^~
2025-May-06 Tue 08:54:31.005 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) - ZeroDivisionError: division by zero

 

7 replies

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • May 6, 2025

Hi ​@Augustin ,

 

Did you try with Try → Catch ? If not, please give it a try and put a message box within the Catch block along with the Error message.

Now coming to the Log, you may refer the Audit log or Activity history for finding the issue with the Bot execution.


Forum|alt.badge.img+11
  • Author
  • Flight Specialist | Tier 4
  • May 6, 2025

Hi ​@Augustin ,

 

Did you try with Try → Catch ? If not, please give it a try and put a message box within the Catch block along with the Error message.

Hi Padmakumar,

This is exactly where the “bot error” message is displayed, in the catch component.

 

>  Now coming to the Log, you may refer the Audit log or Activity history for finding the issue with the Bot execution.

 

In the audit log I have no information about the details of the python script.

 

 


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • May 6, 2025

Hi ​@Augustin ,

 

Did you try with Try → Catch ? If not, please give it a try and put a message box within the Catch block along with the Error message.

Hi Padmakumar,

This is exactly where the “bot error” message is displayed, in the catch component.

 

>  Now coming to the Log, you may refer the Audit log or Activity history for finding the issue with the Bot execution.

 

In the audit log I have no information about the details of the python script.

 

 

How about in the Activity → History section?

Also, since you are getting Bot Error while running your script, please have look at the prerequisites mentioned in below documentation. See if you have missed anything or not

Python Script package


Forum|alt.badge.img+11
  • Author
  • Flight Specialist | Tier 4
  • May 6, 2025

Hi ​@Augustin ,

 

Did you try with Try → Catch ? If not, please give it a try and put a message box within the Catch block along with the Error message.

Hi Padmakumar,

This is exactly where the “bot error” message is displayed, in the catch component.

 

>  Now coming to the Log, you may refer the Audit log or Activity history for finding the issue with the Bot execution.

 

In the audit log I have no information about the details of the python script.

 

 

How about in the Activity → History section?

Also, since you are getting Bot Error while running your script, please have look at the prerequisites mentioned in below documentation. See if you have missed anything or not

Python Script package

I am perhaps not clear : the “bot error” message is a python message, see this screenshot :

 

 

in the Activity>History section you only have information about the bot, not the python script.

 

 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • Answer
  • May 6, 2025

You can see the raw output from Python in the bot runner log files. They are not separated from the other logs.They are in this folder by default: C:\ProgramData\AutomationAnywhere\BotRunner\Logs

I put in a simple Python script designed to fail:

def leppard():
return 0/0

In the Bot_Launcher_AaronGleason.log I see:

2025-May-06 Tue 08:54:30.999 INFO  [BotRunner-b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13] - com.automationanywhere.sdk.python.functions.ExternalFunctionImpl {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - callFunction(ExternalFunctionImpl.java:73) - python-sdk-Received output from function 5330caad-68d6-4b72-b21e-e54e4e6bbb86 for process:28252
2025-May-06 Tue 08:54:31.002 INFO  [Thread-8] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) - 2025-05-06 08:54:31,002 - root - ERROR - Error Running bot function: Traceback (most recent call last):   File "C:\Users\AaronGleason\AppData\Local\AA\resources\b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13\5330caad-68d6-4b72-b21e-e54e4e6bbb86/wrapper.py", line 84, in main     result = method_to_call()              ^^^^^^^^^^^^^^^^   File "C:\Users\AaronGleason\AppData\Local\AA\resources\b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13\5330caad-68d6-4b72-b21e-e54e4e6bbb86\bot.py", line 2, in leppard     return 0/0            ~^~ ZeroDivisionError: division by zero
2025-May-06 Tue 08:54:31.002 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) - Traceback (most recent call last):
2025-May-06 Tue 08:54:31.003 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -   File "C:\Users\AaronGleason\AppData\Local\AA\resources\b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13\5330caad-68d6-4b72-b21e-e54e4e6bbb86/wrapper.py", line 84, in main
2025-May-06 Tue 08:54:31.003 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -     result = method_to_call()
2025-May-06 Tue 08:54:31.004 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -              ^^^^^^^^^^^^^^^^
2025-May-06 Tue 08:54:31.004 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -   File "C:\Users\AaronGleason\AppData\Local\AA\resources\b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13\5330caad-68d6-4b72-b21e-e54e4e6bbb86\bot.py", line 2, in leppard
2025-May-06 Tue 08:54:31.004 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -     return 0/0
2025-May-06 Tue 08:54:31.005 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) -            ~^~
2025-May-06 Tue 08:54:31.005 INFO  [Thread-9] - ExternalScript {deploymentId=b9f7ae9b-40d5-4703-abe2-a5b6ed68988d_35453eb78b167b13, traceId=35453eb78b167b13} - log_aroundBody0(LogUtil.java:32) - ZeroDivisionError: division by zero

 


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • May 6, 2025

Hi ​@Augustin ,

 

Did you try with Try → Catch ? If not, please give it a try and put a message box within the Catch block along with the Error message.

Hi Padmakumar,

This is exactly where the “bot error” message is displayed, in the catch component.

 

>  Now coming to the Log, you may refer the Audit log or Activity history for finding the issue with the Bot execution.

 

In the audit log I have no information about the details of the python script.

 

 

How about in the Activity → History section?

Also, since you are getting Bot Error while running your script, please have look at the prerequisites mentioned in below documentation. See if you have missed anything or not

Python Script package

I am perhaps not clear : the “bot error” message is a python message, see this screenshot :

 

 

in the Activity>History section you only have information about the bot, not the python script.

 

 

Ok. Have you checked the prerequisites mentioned in the Documentation?


Forum|alt.badge.img+11
  • Author
  • Flight Specialist | Tier 4
  • November 19, 2025

Hello and sorry to update an old post : since the package Python script v2.17.1, there is an option to throw an exception if the python script fails. I enjoy this feature, it is really helpful !