@Uday kiran Lalam, Please find below KB article content.
If you are on Automation 360 v.20, the below error is observed in the Bot Agent logs. The UI error mentioned is listed at the start and the stack trace indicates the ComException.
yyyy-Month-dd Day 15:18:52.478 ERROR - BotRunner-ad59a0b8-cb0b-4823-bdee-019856599f5c_f2957fbbc5259a36 - com.automationanywhere.botrunner.bot.Bot_Content {deploymentId=ad59a0b8-cb0b-4823-bdee-019856599f5c_f2957fbbc5259a36, traceId=f2957fbbc5259a36} - handleThrowable(Bot_Content.java:527) - bot status 'FAILED' updated com.automationanywhere.botcommand.exception.BotCommandException: Your Chrome plug-in is either not installed or disabled. For trouble-shooting help, visit the Automation Anywhere Documentation and search for 'Chrome plug-in'.
If the problem persists, please contact your system administrator.
at com.automationanywhere.recorder.service.impl.PlayBackServiceImpl.playBackRecorderCommand(PlayBackServiceImpl.java:94) ~abot-command-recorder-2.1.0-20210311-002508.jar:?]
.
.
.
.
at java.lang.Thread.run(Unknown Source) ?:?]
Caused by: com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x800706BE; The remote procedure call failed.
-----------------------------------------------------------------------------------------------
Cause 1:
One of the possible causes for this error is that, 11.x Client application and the corresponding Chrome Plugin (12.0.0) were installed earlier on the same machine. Despite uninstalling the AAE 11.x Client application, registry settings for the Chrome plugin are retained.
Cause 2:
If you are on the Automation 360 v.20 release, the error message is misleading and indicates an issue with the Chrome Plug-in which may not help resolution of this error.
This is an intermittent problem encountered with the Internet Explorer (IE) where sometimes we receive a ComException from the browser Internet Explorer (IE). This error is observed when the IE browser crashes or generates an error to the Automation 360 API call during bot execution. This error is generally received from the IE browser end when the webpage/UI on which the action is being performed has not yet fully rendered the objects or loaded the webpage and the action is executed.
With Automation 360 v.19 or prior releases, the user will receive the error message that "Unable to find requested object 'Search Criteria' did not match."
Cause 3:
Default package content is missing from the GlobalCache folder; this behaviour has been addressed in A360 v.22 and above.
Cause 4:
Below files are missing in the folder of the Recorder package version of GlobalCache though the Automation.Bot.BrowserAgent.exe seems to be running in Task Manager:
i. AAChromeAgentManifest.json
ii. Automation.Bot.BrowserAgent.exe
Cause 5:
Recorder default package is not selected.
Cause 6:
The 'Automation.Bot.BrowserAgent.exe' is not running in the TaskManager-> Details tab.
The 'automation.bot.browseragent' folder exists in the registry path: "Computer\HKEY_CURRENT_USER\Software\Google\Chrome\NativeMessagingHosts"
----------------------------------------------------------------------------------------------------
Resolution/Workaround:
Solution 1:
Perform the following steps to resolve the issue:
- Remove the NativeMessagingHosts setting for the 11.x Chrome plugin registry setting. Computer\HKEY_CURRENT_USER\Software\Google\Chrome\NativeMessagingHosts\automation.chrome.agent (Solution mentioned under Point#5 of the below article) https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/deployment-planning/cloud-chrome-changing-extension.html
- Restart the Chrome browser and try recording again.
Note: Verify if "automation.bot.browseragent" has been created in the registry under (for versions A2019.15 and above) Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\NativeMessagingHosts
- Make sure the user has access to the C:\ProgramFiles\Automation Anywhere path where the AAChromeManifest.json file is located.
Default Path:- C:\Program Files\Automation Anywhere\Bot Agent\AABrowserAgent\AAChromeAgentManifest.json
- If the above steps do not help resolve the issue, please try the following:
- Stop the Automation Anywhere Bot agent service.
- Navigate to C:\ProgramData\AutomationAnywhere\GlobalCache.
- Delete the content of the Global cache folder.
- Start the Automation Anywhere Bot agent service.
- Try re-running the Bot and see if that helps.
Solution 2:
The bot creator/user will need to add additional delays in the bot to allow the webpage/UI Objects to be first fully loaded before executing the recorder options.
Solution 3:
These steps are only applicable to A360 v.21 and below since v.22 has addressed the package missing from the GlobalCache issue. However, a one-time cleanup can be required to clear out any previous files needing cleanup. This cleanup can also be required if upgrading from A360.20 or A360.21 directly to A360.23 or A360.21 directly to A360.24. The steps to be followed are as follows:
If Automation.Bot.BrowserAgent is running and still, the same error is being received then change the recorder package. If the latest recorder package is not present in the GlobalCache folder then perform the below steps
- Stop the Bot agent service.
- Delete the GlobalCache folder. The folder would be present in C:\ProgramData\AutomationAnywhere
- Start the Bot agent service.
- Now try to use the latest package. The folder of the latest package should be created in C:\ProgramData\AutomationAnywhere\GlobalCache\embedded-resources.
- If it is not created, then uninstall the bot agent and delete the GlobalCache folder.
- Install and register the device.
- Now run the bot with the latest recorder package.
Solution 4:
Applicable for the Bot Agent versions greater than 18.19
1. On the Bot Agent machine, navigate to the location C:\ProgramData\AutomationAnywhere\GlobalCache\embedded-resources.
2. Locate the Package for the Recorder command and take the backup of the folder. ( The name of the package would start with the version of the Recorder Package being used in the bot).
For instance, if Recorder package used is of version 2.2.0-20210507-195346, then the folder name will be in the form of 2.2.0-20210507-195346-d49ca70a-a160-4b95-b53a-d242654184c0.
Note: The Hexadecimal part in the folder name will be dynamic.
3. Open the Installation path of Bot Agent, C:\Program Files\Automation Anywhere\Bot Agent\AABrowserAgent.
4. Copy the below files:
i. AAChromeAgentManifest.json
ii. Automation.Bot.BrowserAgent.exe
5. Paste it under the folder located in Step 2.
6. Restart the Bot Agent service.
7. Capture the object using the Recorder.
It should capture the objects now.
After following the above-mentioned steps if the issue persists then perform the below steps:
- Delete the ComSpec environment variable.
- Restart the machine
- Add the ComSpec environment variable.
Solution 5:
Make sure that the Recorder is selected as the Default version on the Package page.
Solution 6:
Remove the entry 'automation.bot.browseragent' in the registry path: "Computer\HKEY_CURRENT_USER\Software\Google\Chrome\NativeMessagingHosts".
After removing the registry entry, 'Automation.Bot.BrowserAgent.exe' should be running in the Task Manager-> Details tab.
Note: After making registry changes, restart the machine.