Jump to content

KB 3008923 error help


Recommended Posts

Hi guys, 

I was trying to automate a webpage after getting input from excel. The script worked fine for like 5 iterations but then stopped all of a sudden, I dont have the exact error msg now, but it was pointing to this in the IE UDF:-

Return SetError($_IESTATUS_Success, $oTemp.GetElementsByTagName($sTagName).length,

When i looked up the forum there was a similar question which said that I have to fix KB 3008923 update by uninstalling it, but I am unable to do that. 

here is the link for download:- ( i guess )

https://support.microsoft.com/en-us/help/3024777/error-0x800706f7-occurs-after-you-install-kb-3004394-and-then-run-windows-update-in-windows-7-and-windows-server-2008-r2

Does anybody know the proper steps to solve this??

Plus I wont be able to send the code here because of privacy policy n all by the company.

Desperately looking for a reply.....

Edited by Hanukka
Link to comment
Share on other sites

Fellas, This was the error exactly :-

"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1811) : ==> The requested action with this object has failed.:
Return SetError($_IESTATUS_Success, $oTemp.GetElementsByTagName($sTagName).length, $oTemp.GetElementsByTagName($sTagName))
Return SetError($_IESTATUS_Success, $oTemp^ ERROR

plss helpp

Link to comment
Share on other sites

  • Moderators

So you don't know the exact error, you can't share the code, and you don't even link to the "similar question" you found on the forum. @Hanukka take a moment and really think about whether you would be able to help someone with this amount of information...

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

 

There I guess this thread matches mine but i havent found any conclusion

AND...Mr @JLogan3o13...listen

1) I know the EXACT error...i have mentioned in the 2nd post..I dont know the fix

2) Yes i am sorry, but i cant share the code. So please refer to the code in the attached post, else its ok

3) I forgot to put the link..there enjoy

and dude..why dont you focus on christmas a little bit, never have you helped with my error,  but only correct the format or taunt. 

Edited by Hanukka
Link to comment
Share on other sites

  • Moderators

It isn't a taunt. Forum members are here to help, but you have a history of expecting people to first guess at what you are doing and then try to troubleshoot for you. A little thought behind your posts will help others help you.

Edit: And the error states that it cannot access the object. So, without seeing any code, do you have error checking in place to validate that $oTemp is an object?

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Developers
11 minutes ago, Hanukka said:

and dude..why dont you focus on christmas a little bit, never have you helped with my error,  but only correct the format or taunt. 

mmm....  I am sure this will really help to make your life easier around here. ;)

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Shit...I got a little hyper...sorry @JLogan3o13....

Peeps, i cant provide the code since it is long and more, it is super specific to thhe webapp and excel..

so ill just provide a blueprint, hope yall wont mind

Its like there is a loop which runs until there are non null rows in excel

in that I use various functions like:

_IEFrameGetObjByName

_IETagNameGetCollection

_IEFormElementCheckBoxSelect

PixelSearch....and a lot more

the thing is it worked for like 7 excel rows, ie. took the excel data, navigated to the right webpage, made the edits.

it get effed after that.

I changed the data, it worked till 7 rows, tried another similar script, worked till 8 or so...I am 95% sure that the script is error free.

There was something regarding memory leak or something discussed in the thread i last attached...wasnt resolved

Im using IE11...

Thats all i can provide yall with guys, pls refer the previous posts too...

N sorry again @JLogan3o13...please help me here if you can.

Link to comment
Share on other sites

9 hours ago, Hanukka said:

Does anybody know the proper steps to solve this??

Did you look here:

How to use IE.au3  UDF with  AutoIt v3.3.14.x  

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

  • Developers
1 hour ago, Hanukka said:

Thats all i can provide yall with guys

In my humble opinion this won't be enough to help you.  Why can't you make a simple reproducer script that opens  8 pages from hardcoded URL's to see if that works or errors out. In case it works, add the bit to open the excel and read the url's from there. Then you can post it back to show us to see if we can help debug it.

In case you are unable to do so you really need to stop expecting people to help as you only get wild stabs in the dark.

Jos  

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

@mLipok...I tried using _IEerrorhandlerregister, but now the code stopped even before it used to...Its getting too much fr me, I tried using excel data on a simple website without frames n it worked...I have no clue how to explain further...Anyways here, this is the code that i was working with...(edited a bit)

#include <IE.au3>
#include <Excel.au3>                                                                                
#include <StringConstants.au3>
#include <Array.au3>
#include <MsgBoxUDF.au3>
#include <File.au3>


_IEErrorHandlerRegister()  ;FUCKS UP...I DONT KNOW HOW TO HANDLE MESELF

;~ #Excel update check

_MsgBox_SetButtonText(4, "Ya", "Na")
$ret = _MsgBox(4 + 262144, '                                  (O_o)', 'Do you want to update your excel file?')
If $ret == 6 Then
   $useret = Run("Assngen.exe ")
   ProcessWaitClose($useret)
EndIf

;~ ;;;;;;;;;;;;;;;;;;;;;;;-------Some function space!!!!

Func assnid($i)
   $temp = "AF" & $i
  $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   ;ConsoleWrite($flag & @CRLF)
   return $fag
EndFunc

Func name($i)
   $temp = "D" & $i
   $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   ;ConsoleWrite($flag & @CRLF)
   return $fag
EndFunc


Func rowno($i)
   $temp = "AG" & $i
  $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   ;ConsoleWrite($flag & @CRLF)
   return $fag
EndFunc

Func reminder()
   $rID = _IEAttach('THE URL', 'url')
   If $rID <> "" Then
      ;WinSetState($rID, "", @SW_MINIMIZE)
      $dismiss = _IEGetObjById($rID, 'dismissAllBtn')
      _IEAction($dismiss, 'click')
      Sleep(2000)
      Return 0
   Else
      Return 0
   EndIf
EndFunc

Func datext($i)
   Local $array[4]
  $temp = "W" & $i
  $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   $temp1 = StringTrimRight($fag, 4)
   $array = StringSplit($fag, '/')
   $yr = StringTrimLeft($array[3], 2)
   $fag = $temp1 & $yr
   return $fag
EndFunc

Func reason($i)
   $temp = "AH" & $i
  $fag = _Excel_RangeRead($NoteBook, Default, $temp)
   If $fag == "" Then
      return -1
   EndIf
   ;ConsoleWrite($flag & @CRLF)
   return $fag
EndFunc

Func morechk($x)
   Sleep(1500)
   $ret1 =  WinActive('AutoIt Error')
   $ret2 = WinActive('Message from webpage')
   ;ConsoleWrite($ret1)
   ;ConsoleWrite($ret2)
   If $ret1 <> 0 Or $ret2 <> 0 Then
      Sleep(1000)
      Send('{Enter}')
      _IEQuit($x)
      MsgBox(0, 'ERROR', 'Please update excel sheet')
      Exit
   EndIf
EndFunc

Func failogin($x)
  $tags = _IETagNameGetCollection($oIE1, 'span', 0)
   If $tags.innertext = 'Login failed, check username and password.' Then
      MsgBox(0, "ERROR", 'Wrong username / password')
      _IEQuit($x)
      Exit
   EndIf
EndFunc

Func colorfail($x)
    MsgBox(0, 'ERROR', 'RETRY')
   Sleep(3000)
   Send('{Enter}')
   _IEQuit($x)
EndFunc


$file = @ScriptDir & "\lolfile.txt"
FileOpen($file, 2)

;;;;;;;;;;;;Open Active Excel
$var = @ScriptDir & "\EXCEL.xlsx"
$oExcel = _Excel_Open()
$NoteBook = _Excel_BookOpen($oExcel, $var)
WinSetState("EXCEL", "", @SW_MINIMIZE)

;~ ;;;;;;;;;;;;;Opens the main login after GUI

$oIE1 = _IECreate('THE URL')
Sleep(2000)
;$name1 = $CmdLine[1]
;$psw1 = $CmdLine[2]
$name = _IEGetObjById($oIE1, 'loginID')
$psw = _IEGetObjById($oIE1, 'password')
_IEFormElementSetValue($name, 'test');$name1)
_IEFormElementSetValue($psw, 'test');$psw1)
Sleep(500)
$tags = _IETagNameGetCollection($oIE1, 'input')
For $tag In $tags
   $class_value = $tag.GetAttribute("value")
   If $class_value = "Continue" Then
      _IEAction($tag, 'click')
   EndIf
Next
Sleep(2000)
failogin($oIE1)
;;;;;;;;;;;;;;;;;;;;-Addn pg
$timer = 1
$temp = 0
While ($timer <> 60)
   $oIEX = _IEAttach('THE URL', 'url')
   $oIE2 = _IEAttach('THE URL', 'url')
   If $oIEX <> "" Or $oIE2 <> "" Then
      If $oIE2 <> "" Then
         $x = $oIEX
         ExitLoop
      Else
         $x = $oIE2
      EndIf
      $tags = _IETagNameGetCollection($oIEX, 'input')
      For $tag In $tags
       $class_value = $tag.GetAttribute("value")
       If $class_value = "Continue" Then
           _IEAction($tag, 'click')
           $temp = 1
           ExitLoop
       EndIf
      Next
      If $temp == 1 Then
         ExitLoop
      EndIf
   EndIf
   Sleep(1000)
   $timer+=1
WEnd

If $timer == 60 Then
   WinClose('[ACTIVE]')
EndIf

;;;;;;;;;;;;;;;;-main pg
;---open & maximize
$timer = 1
While ($timer <> 60)
   $oIE2 = _IEAttach('THE URL', 'url')
   If $oIEX <> "" Then
      $oIE2 = _IEAttach('THE URL', 'url')
   EndIf
   If $oIE2 <> "" Then
      ExitLoop
   EndIf
   Sleep(1000)
   $timer+=1
WEnd

If $timer == 60 Then
   WinClose('[ACTIVE]')
EndIf

Sleep(1500)
WinSetState("THE TITLE", "", @SW_MAXIMIZE)
Sleep(1500);
;---defined at #
$i = 2
$j = 0
$disflag = 0
$dheight = @DeskTopHeight
$dwidth = @DeskTopWidth
While(assnid($i)<>-1)
   Sleep(500)
   If assnid($i) == "" Then
      ContinueLoop
   EndIf
   $main_div = _IEGetObjById($oIE2, 'SOMETHING')
   $tags = _IETagNameGetCollection($main_div, 'div')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   For $tag In $tags
      If $tag.id = "SOMETHING" Then ;# Click the home in the dropdown of Jobs
         _IEAction($tag, 'click')
      EndIf
   Next
   Sleep(2000)
   If $j == 0 Then
      $main_frame = _IEFrameGetObjByName($oIE2, 'SOMETHING')
   Else
      $main_frame = _IEFrameGetObjByName($oIE2, 'MAINFRAME');# Changes after first iteration
   EndIf
   $sub_frame = _IEFrameGetObjByName($main_frame, 'roleSearchFrame')
   $form = _IEGetObjById($sub_frame, 'attributeForm')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   $check = _IEFormElementCheckBoxSelect($form, '6920558') ;# Select contact checkbox
   Sleep(2000)
   $tags = _IETagNameGetCollection($sub_frame, 'input')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   For $tag In $tags
      $class_value = $tag.GetAttribute("id")
      If $class_value = "11461$" Then
         _IEAction($tag, 'click')
         If rowno($i) = 9999 Then
            ContinueLoop
         EndIf
         _IEFormElementSetValue($tag, assnid($i))
      EndIf
   Next
   Sleep(3000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   For $tag In $tags
      $class_value = $tag.GetAttribute("id")
      If $class_value = "find" Then
         _IEAction($tag, 'click')
      EndIf
   Next
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick("primary", 1092, 174, 1, Default);# First Random Click
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   Send('^f')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   Send(assnid($i))
   Sleep(3000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick("primary", 1092, 174, 1, Default)
   Sleep(1000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   $Array = PixelSearch (0, 89, $dwidth, $dheight, 0xFFFF00);#######################
   If @error == 1 Then
     colorfail($oIE2)
  EndIf
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick('primary', $Array[0], $Array[1], 1)
   Sleep(5000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   Send('^f')
   Sleep(1000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   Send('End Assignment')
   Sleep(2500)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick("primary", 1092, 174, 1, Default)
   Sleep(2000)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   $Array = PixelSearch (0, 89, $dwidth, $dheight, 0xFFFF00)
   Sleep(2000)
   If @error == 1 Then
     colorfail($oIE2)
   EndIf
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   MouseClick('primary', $Array[0], $Array[1], 1)   ;# Get the new window to change date
   morechk($oIE2)
   Sleep(4000)
   If $i = 8 Then
      MsgBox(0, "", 'now')
      Sleep(10000)
   EndIf
;
   $oIE3 = _IEAttach('THE URL', 'url')
;~    ConsoleWrite('wreck1' & @CRLF)
   $frame = _IEFrameGetObjByName($oIE3, '_IFRAMEID')
;~    ConsoleWrite('wreck2' & @CRLF)
   $ip = _IEGetObjById($frame, 'SOMETHING')
;~    ConsoleWrite('wreck3' & @CRLF)
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   _IEAction($ip, 'click')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
;~    ConsoleWrite('wreck4' & @CRLF)
   _IEFormElementSetValue($ip, datext($i))
   Sleep(2000)
;~    ConsoleWrite('wreck5' & @CRLF)
   $ip2 = _IEGetObjById($frame, 'SOMETHING')
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
;~    ConsoleWrite('wreck6' & @CRLF)
   _IEFormElementSetValue($ip2, reason($i))
   Sleep(2000)
   $oButtons = _IETagnameGetCollection($frame, "button")
   ;;;;---rem check
   If $disflag == 0 Then
      $disflag = reminder()
   EndIf
   For $oButton in $oButtons
      If String($oButton.innertext) = "Confirm" Then
         _IEAction($oButton, "click")
      EndIf
   Next
   Sleep(2000)
   FileWrite($file, name($i) & ", "& assnid($i) & @CRLF)
;~    ConsoleWrite(@error)
   $i+=1
;~    $j = 1
WEnd
MsgBox(0, 'Status', 'Completed')
_MsgBox_SetButtonText(0, "OK...Bye")
_MsgBox(0 + 262144, '        "\(^_^)', 'Bye')
Sleep(2000)
WinClose('Assignment Record')
Sleep(2000)
_IEQuit($oIE2)

  Works for 8 or so records n then gets effed

If yall have any recommendations n all pls do tell...else, its ok, i am currently using another script to run it for 5 iterations each time :P

Link to comment
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
 Share

×
×
  • Create New...