question

ChenchuKishore T. avatar image
ChenchuKishore T. asked ·

Automation Error

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

scripting
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Ernest J. avatar image
Ernest J. answered ·

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

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

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

0 Likes 0 · ·
Yuriy L. avatar image
Yuriy L. answered ·

@ 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-offline-mode.

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

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

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.

0 Likes 0 · ·
Per B. avatar image
Per B. answered ·

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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Yuriy L. avatar image
Yuriy L. answered ·

@ChenchuKishore T.

Hi ChenchuKishore,

Which operating system is being used?

Thank you,

Yuriy

2 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

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

0 Likes 0 · ·

@ChenchuKishore T.

Hi ChenchuKishore,

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

Thank you,

Yuriy

0 Likes 0 · ·