cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Automation Error

chenchukishore1
Newcomer

While playing back the script I am getting an error as VBMsg: Automation Error.

8 REPLIES 8

ernest_jones
Helper

Hi,

This is likely related to absence of .NET 2.0. This can be verified in Programs and Features. Please let me know if this helps.

Thank you,

Ernie

Hi Erine,

You are right. It is related to .Net 20 and the automation error issue has been resolved. However, the playback is happening only till the GoTo page and after that it stays there. Even when I try to record the script the IEWindow attach is not getting recorded and the script is failing as soon as there is an IEWindow attach statement in the script.

Please let me know what could be the reason for this issue. Appreciate your help here.

Regards,

Kishore

yuriy_look
Inactive

@ChenchuKishore T.

Hi ChenchuKishore,

Which operating system is being used?

Thank you,

Yuriy

Hi Yuriy,

I am using Windows 7 enterprise and another machine is Windows 2012 R2 Standard.

Now it is throwing the Runtime Error "13" and VB Msg: Type Mismatch.

Please help us with this issue.

Regards,

Kishore

@ChenchuKishore T.

Hi ChenchuKishore,

Could you please debug the script in problem and locate the exact line that fails to execute.

Thank you,

Yuriy

per
Inactive

What is the solution to the error, I have the same problem ??

yuriy_look
Inactive

@ Per B.

Hi Per,

"Automation error" is a very generic type of error
– all it says is that Component
Object Model (commonly referenced as COM)
object experienced some error and
thus could not perform the request from VBA code.

For the Agent Recorder versions 12.3.x and 12.4.x scripts, this
is often caused by the absence of .NET 2.0 runtime in the environment. Please check Control Panel’s Program and
Features. There should be a line similar
to "Microsoft .NET Compact Framework 2.0". For the most of the contemporary operating
systems .NET 2.0 is installed or activated through .NET 3.5, please reference
these Microsoft publications:
https://docs.microsoft.com/en-us/dotnet/framework/install/dotnet-35-windows-10,
https://support.microsoft.com/en-us/help/2785188/how-to-enable--net-framework-3-5-on-windows-8-in-of....

But there could be, of course, other reasons for the automation
error. So, if .NET 2.0 is present in
your environment, it is necessary to find and correct the exact element of the
code that produces the error. The
correction oftentimes needs to be done not where the error is produced, but
someplace earlier in the code and/or above in the code hierarchy to allow the
failing request to proceed.

Hope this helps,

Thank you,

Yuriy

Hi Yuriy,

Thanx for the reply, It was infact the .net 2.0 runtime env. which was not installed... I managed to install it, and it's working now.

Br.

Per B.