Hanukka

KB 3008923 error help

12 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted

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

Share this post


Link to post
Share on other sites

#3 ·  Posted

For another update, I dont and did not have KB 3008923 as yall can see in this picture......

 

IMG_20170623_164827.jpg

 

Guys please help or provide link to the right area if you know the answer_/\_

Share this post


Link to post
Share on other sites

#4 ·  Posted

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...


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

 

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#7 ·  Posted

alright mate, thanks...

the error as you can see is from the IE.au3 udf, I do not check the $oTemp variable of the UDF at any place..

Ill provide a little update of my code in a while

Share this post


Link to post
Share on other sites

#8 ·  Posted

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#9 ·  Posted

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.

Share this post


Link to post
Share on other sites

#10 ·  Posted

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  

1 person likes this

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for 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 API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

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 * Best coding practices * 

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) * 

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 *

"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: 2017-06-04

Share this post


Link to post
Share on other sites

#11 ·  Posted

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  

1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#12 ·  Posted

@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

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

  • Similar Content

    • VeryGut
      By VeryGut
      I'm trying to insert the following formula in cell A2 using my script:
      =if(A1=""; "YES"; "NO")
      To my understanding, the line of code should be similar to this:
      _Excel_RangeWrite($MasterFile, Default, "=if(A1=""; "YES"; "NO")", "A2")
      However, it does not work, probably due to the multiple quotation marks that confuse the script :C
      How do I avoid this problem?
    • LoneWolf_2106
      By LoneWolf_2106
      Hi everybody,
      i have a question about Excel, i have to create several charts one below the other dynamically.
      I have thought to use:
       
      $oRangeLast = .UsedRange.SpecialCells($xlCellTypeLastCell) $iRowCount = .Range(.Cells(1, 1), .Cells($oRangeLast.Row, $oRangeLast.Column)).Rows.Count  
      And then to use it in this way:
      $Graph_position = "=Test1!A"&$iRowCount+2&":K"&$iRowCount+24 But it doesn't work with charts.
      Does anyone have a suggestion?
       
    • LoneWolf_2106
      By LoneWolf_2106
      Hi all,
      i have an empty csv file, i have a non formatted text file.
      What do i want to do?
      I want to automate the process "get external data" in Excel, i want to import the data from the text file and basically create a csv file with a specific character encoding.
      Is it possible with AutoIT?
       
    • kawliga751
      By kawliga751
      I have a workplace GUI that has a search field function that pulls up customer records to allow changes. I am attempting to 1)LOGIN 2)Enter Search field, enter a number and then {ENTER} 3)change specific field once customer record loads. I have very limited experience in GUI manipulation but I am able to login using the below:
      #include <IE.au3> Const $navOpenInNewTab = 0x0800 Dim $oIE = _IECreate('http://asag.xxxxxxx.com/ASAG/index.htm') Call ("RacksheetSignIn") Func RacksheetSignIn () Local $username = _IEGetObjByName ($oIE,"uname") Local $password = _IEGetObjByName ($oIE,"pword") $oIE.Navigate2('http://asag.xxxxxxx.com/apps/RackSheets/LogInSAG/login.asp',2048) _IEFormElementSetValue ($username, "xxxxxxx") _IEFormElementSetValue ($password, "xxxxxxx") Send('{Enter}') EndFunc However I can't seem to use the _IEGetObjByName or Mouseclick to focus on the search field to allow me to enter my search criteria. When I "inspect element" in the Search field I get the attached:
       
      Any help would be MUCH appreciated
       
       
       

    • breakbadsp
      By breakbadsp
      I  want to create a excel file from my script if it does not exist.
      _ExcelBookOpen throws error=2 if file does not exist, after this error i want to create new file at this point.
      can i use _FileCreate()?
      _Logger($sLogPath, "{INFO}------: Opening Excel File: " & $sExcelPath& "") While 1 Local $oExcelTestResult = _ExcelBookOpen($sExcelPath) If @error = 2 Then If not _FileCreate($sResExcelPath) Then MsgBox(0, "Error", "Error In Opening REsult Excel File: Error: " & String(@error)) _Logger($sLogPath, "{ERROR}------: Result Excel File does not exist.. tried to create new but :ERROR : " & String(@error) & "") ExitLoop Else _Logger($sLogPath, "{INFO}------: Result Excel File does not exist.. **Created New**: ") EndIf Else ExitLoop EndIf WEnd