Sign in to follow this  
Followers 0
ILoveAutoIt

AutoIt Error - Line 316 of IE.au3 causing IENavigate to fail?

12 posts in this topic

Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigate

What are some things that could cause this error?

Thanks

P.S. I love autoit :)

Share this post


Link to post
Share on other sites



Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigate

What are some things that could cause this error?

Thanks

P.S. I love autoit :)

Mind posting the code so we can find the problem? :)

Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt

Share this post


Link to post
Share on other sites

Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigate

What are some things that could cause this error?

Line 316 is here:
Func _IENavigate(ByRef $o_object, $s_Url, $f_wait = 1)

;

    $o_object.navigate($s_Url); Line 316

;

EndFunc  ;==>_IENavigate

Probably something has invalidated your $oIE object. Next time you see it post the exact error.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Line 316 is here:

Func _IENavigate(ByRef $o_object, $s_Url, $f_wait = 1)

;

    $o_object.navigate($s_Url); Line 316

;

EndFunc ;==>_IENavigate

Probably something has invalidated your $oIE object. Next time you see it post the exact error.

:)

Whoops! I read his post incorrectly. It seems I've skipped over the IE.au3 part. :) Still, the OP's code wouldn't hurt. :)

Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

The code is proprietary :)

Could it be that the computer lost connection to the internet?

P.S. running the code now, will post exact error when it occurs.

Edited by ILoveAutoIt

Share this post


Link to post
Share on other sites

That really depends on the error. I doubt it has anything to do with an active connection or not, as that would be a silent error, not a fatal one.

Share this post


Link to post
Share on other sites

Weird, since I posted this I've been running the script for hours and it hasnt come up. I must have changed something that fixed it :)

Share this post


Link to post
Share on other sites

Here it is...

------------------------------------------

AutoIt Error

Line 316 (File "C:\Program Files\AutoIt3\Include\IE.au3")

$o_object.navigate($o_Url)

$o_object.navigate($o_Url)^ERROR

Error: The requested action with this object has failed.

------------------------------------------

Share this post


Link to post
Share on other sites

Anyone?

Share this post


Link to post
Share on other sites

Your object has become invalidated. Either something released the object or it crashed.

Share this post


Link to post
Share on other sites

Here it is...

------------------------------------------

AutoIt Error

Line 316 (File "C:\Program Files\AutoIt3\Include\IE.au3")

$o_object.navigate($o_Url)

$o_object.navigate($o_Url)^ERROR

Error: The requested action with this object has failed.

------------------------------------------

I don't think $o_object has failed, or it would say something like "Variable is not an object".

The variable $o_Url might be changing and becoming invalid. You could add some temporary logging to track that.

You also might be hitting a timing issue where the browser is busy and can't be bothered with a .navigate command. You might put _IELoadWait($oIE) just before the _IENavigate().

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Ill give IELoadWait a try since I know the connection being used can slow down occasionally.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0