Jump to content

Recommended Posts

I was running my script and everything was working fine and then it just stopped working. 

I got this error message:

!>12:51:55 AutoIt3.exe ended.rc:-1073741819
+>12:51:55 AutoIt3Wrapper Finished.
>Exit code: 3221225477    Time: 354.6

I looked that error up and this article (https://www.autoitscript.com/trac/autoit/ticket/2541) said it was fixed a long time ago. 

I am using version: SciTE Version 4.1.0, how am I getting this error? (first time I got it after running my code 50+ times)

it crashed while trying to loop through emails. 

Full output log:

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" /run /prod /ErrorStdOut /in "C:\" /UserParams    
+>12:46:01 Starting AutoIt3Wrapper v.18.708.1148.0 SciTE v.4.1.0.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE 
>Running AU3Check (3.3.14.5)  from:C:\Program Files (x86)\AutoIt3 
+>12:46:01 AU3Check ended.rc:0
>Running:(3.3.14.5): 
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
Action 1: Create a connection to the outlook account at line: 192
Action 1: Finished at line: 205
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Current email has been changed from Unread to Read. at line: 238
Current email has been changed from Unread to Read. at line: 238
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 3: Store vaild E-mails at line: 258

Number of unread E-mails: 17 at line: 290
Action 3: Finished at line: 292


Current number of processed Emails is: 0 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Description. Suite not needed. at line: 2180
Action 7: Finished at line: 2186

Opening a new Chrome window. at line: 2747
Action 8: Open Web Browser at line: 2240

_WDStartup: "MicrosoftWebDriver.exe" --verbose 


Action 8: Finished at line: 2270
Action 9: Navigate to Work Order Tracking at line: 2281
Action 9: Finished at line: 2295
Action 10: Click on Create New Work Order at line: 2306
Action 10: Finished
Action 11: Send E-mail Data to it's proper field at line: 2324
Sub-Action 3: Split Long Description at line: 2522
Sub-Action 3: Finished at line: 2576


Work Order Number: 660308

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 1 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Description. Suite not needed. at line: 2180
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324


Work Order Number: 660309

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 2 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Description. Suite not needed. at line: 2180
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324
Sub-Action 3: Split Long Description at line: 2522
Sub-Action 3: Finished at line: 2576


Work Order Number: 660310

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 3 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Description. Suite not needed. at line: 2180
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324


Work Order Number: 660311

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 4 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Description. Suite not needed. at line: 2180
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324


Work Order Number: 660312

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 5 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Description. Suite not needed. at line: 2180
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324


Work Order Number: 660313

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 6 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Proper Building format used. Send Location: YT6508
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Long Description. Suite not needed. at line: 1475
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324


Work Order Number: 660314

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 7 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Proper Building format used. Send Location: CN2116
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Long Description. Suite not needed. at line: 1475
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324
Sub-Action 3: Split Long Description at line: 2522
Sub-Action 3: Finished at line: 2576


Work Order Number: 660315

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 8 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Proper Building format used. Send Location: DT4905
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324


Work Order Number: 660316

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 9 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Proper Building format used. Send Location: YT6513
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
Young Tower has no suites!
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324
Sub-Action 3: Split Long Description at line: 2522
Sub-Action 3: Finished at line: 2576


Work Order Number: 660317

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 10 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Proper Building format used. Send Location: BT3310
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Long Description. Suite not needed. at line: 1475
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324
Sub-Action 3: Split Long Description at line: 2522
Sub-Action 3: Finished at line: 2576


Work Order Number: 660318

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 11 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Proper Building format used. Send Location: BT3411
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Description. Suite not needed. at line: 2180
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324
Sub-Action 3: Split Long Description at line: 2522
Sub-Action 3: Finished at line: 2576


Work Order Number: 660319

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 12 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
Action 4: Finished at line: 361
Action 5: Store E-mail's contents at line: 371
Action 5: Finished at line: 495
Action 6: Test to Skip based on location at line: 508
Proper Building format used. Send Location: DT4519
Action 6: Finished at line: 710
Action 7: Check if location needs to be a suite at line: 720
The 'Bathroom' is not mentioned in the Description. Suite not needed. at line: 2180
Action 7: Finished at line: 2186
Action 11: Send E-mail Data to it's proper field at line: 2324
Sub-Action 3: Split Long Description at line: 2522
Sub-Action 3: Finished at line: 2576


Work Order Number: 660320

Action 11: Finished at line: 2511

Change status was called at line: 2758
Sub-Action 2: Change E-mail to Read at line: 2223
Current email has been changed from Unread to Read. at line: 2226
Sub-Action 2: Finished at line: 2230
Action 16: Create New Work Order at line: 2705
Action 16: Finished at line: 2719


Current number of processed Emails is: 13 at line: 2735
Action 2: Scan for invaild E-mails at line: 215
Number of SKIPPED unread E-mails:  at line: 226
Number of SKIPPED E-mails: 0 at line: 246
Action 2: Finished at line: 248
Action 4: Loop through E-mails at line: 302
!>12:51:55 AutoIt3.exe ended.rc:-1073741819
+>12:51:55 AutoIt3Wrapper Finished.
>Exit code: 3221225477    Time: 354.6

 

Edited by nooneclose
Problem solved

Share this post


Link to post
Share on other sites

The helpfile is your friend..... just do a quick search for "COM Error Handling" ;) 

Jos

Share this post


Link to post
Share on other sites

@JosI added this  to my code:

;*******************************************************************************
; COM ERROR HANDLER for LoopUnreadEmails
;*******************************************************************************
Local $oMyError = ObjEvent("AutoIt.Error", "ErrFunc")

; This is a custom error handler
Func ErrFunc($oError)
    ConsoleWrite(@CRLF & @CRLF & "We intercepted a COM Error ! " & _
                 " Number: 0x " & Hex($oError.number, 8) & @CRLF & _
                 "Description: " & $oError.windescription & _
                 "At line: " & $oError.scriptline & @CRLF & @CRLF)
EndFunc   ;==>ErrFunc

and one of the intercepted errors was:

"We intercepted a COM Error!  Number: 0x 80020009
Description: Exception occurred.
At line: 3060"

by code stops at line: 2943

Did I do something wrong? 

SIDE NOTE: all of the com errors were on lines that were commented out or were empty? Is that normal?  

Edited by nooneclose

Share this post


Link to post
Share on other sites

Did you compile the script as that will/could change the line number of the line having the issue?
Au3stripper could help you there by using the merge-only option as that will generate a source file which should be quite similar.

Jos
 

Share this post


Link to post
Share on other sites

You're getting errors on lines that don't match because the #includes you have are added to the script where the line "#include ..." is. I would add a line "#AutoIt3Wrapper_Run_Au3Stripper=y", compile it, and finally open and run the stripped version. Then you'll see exactly which line the error/s occur on.


All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Share this post


Link to post
Share on other sites

@seadoggie01 should I have that line per #include or just once? I did that and got this error message.

-### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: __winhttpformupload
c:\program files (x86)\autoit3\include\winhttp.au3(2365,1): Warning for line:Call($aClbk[0], Floor($i * 100 / $aClbk[1])) 

-### StripOnly/StripFunc Error: Found ObjEvent() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: @@
C:\Users\a\Desktop\Bots\MyBotScripts\WD_WO_BOT.au3(99,1): Warning for line:Local $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") 

-=============================================================================================================
-#### Au3Stripper Found   2 Error(s)!!!!    This means your script could have problems running properly.  ####
-=============================================================================================================
- 3.75 Iteration 1 Strip Functions result: Output  7349 lines, stripped 16000 Func lines and 17668 Commentlines
- 6.50 Iteration 2 Strip Variables result: Output  4821 lines and stripped 2528 lines
- 7.50 Iteration 3 Strip Variables result: Output  4766 lines and stripped 55 lines
- 8.50 Iteration 4 Strip Variables result: Output  4765 lines and stripped 1 lines
- 9.50 Iteration 5 Strip Variables result: Output  4765 lines and stripped 0 lines
+> Source    41633 lines 2023541 Characters.
+> Stripped  18584 Func/Var lines and  17668 comment lines, Total 1809307 Characters.
+> Saved     87% lines 89% Characters.
+> Au3Stripper v18.708.1148.0 finished created:C:\Users\a\Desktop\Bots\MyBotScripts\WD_WO_BOT_stripped.au3
!>08:14:16 ---------------------------------------------------------------
!>08:14:16 Au3Stripper ended with errors, using original scriptfile.rc:2
!>08:14:16 ---------------------------------------------------------------

OK, I did what you said and ran the stripped version and got these as the com errors:


We intercepted a COM Error !  Number: 0x 80020006
Description: Unknown name.
At line: 878
Local $oOL = ObjGet("", "Outlook.Application")


We intercepted a COM Error !  Number: 0x 80020009
Description: Exception occurred.
At line: 1048
Local $iItems = $oItems.Count

We intercepted a COM Error !  Number: 0x 80020009
Description: Exception occurred.
At line: 1114
$aProperties[$iCounter][1] = $oProperty.value

Edited by nooneclose
forgot some of the error message

Share this post


Link to post
Share on other sites

That's weird. That first line shouldn't throw a COM error from what I understand. You have the full version of Office, right? Not a trial version? If you do, you've reached the end of my knowledge... I don't get why this would appear.


All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Share this post


Link to post
Share on other sites

  Could you please extend your COM error handler a bit?

; This is a custom error handler
Func ErrFunc($oError)
    Local $bHexNumber = Hex($oError.number, 8)
    ConsoleWrite(@CRLF & @CRLF & "We intercepted a COM Error ! " & _
            " Number: 0x " & Hex($oError.number, 8) & @CRLF & _
            "Description: " & $oError.windescription & _
            "At line: " & $oError.scriptline & @CRLF & @CRLF & _
            "@AutoItVersion = " & @AutoItVersion & @CRLF & _
            "@AutoItX64 = " & @AutoItX64 & @CRLF & _
            "@Compiled = " & @Compiled & @CRLF & _
            "@OSArch = " & @OSArch & @CRLF & _
            "@OSVersion = " & @OSVersion & @CRLF & _
            "Scriptline = " & $oError.scriptline & @CRLF & _
            "NumberHex = " & $bHexNumber & @CRLF & _
            "Number = " & $oError.number & @CRLF & _
            "WinDescription = " & StringStripWS($oError.WinDescription, 2) & @CRLF & _
            "Description = " & StringStripWS($oError.Description, 2) & @CRLF & _
            "Source = " & $oError.Source & @CRLF & _
            "HelpFile = " & $oError.HelpFile & @CRLF & _
            "HelpContext = " & $oError.HelpContext & @CRLF & _
            "LastDllError = " & $oError.LastDllError & @CRLF)                 
                 
EndFunc   ;==>ErrFunc

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-10-24 - Version 1.4.14.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-02-09 - Version 1.4.1.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (NEW 2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

Here is the new output:

 

We intercepted a COM Error !  Number: 0x 80020006
Description: Unknown name.
At line: 194 (This happened 1 time at the very begining)

@AutoItVersion = 3.3.14.5
@AutoItX64 = 0
@Compiled = 0
@OSArch = X64
@OSVersion = WIN_10
Scriptline = 194
Number = -2147352570
WinDescription = Unknown name.
Description = 
Source = 
HelpFile = 
HelpContext = 
LastDllError = 0

 

NOTE: These two happened every time the code looped so 58 times

We intercepted a COM Error !  Number: 0x 80020009
Description: Exception occurred.
At line: 2906

@AutoItVersion = 3.3.14.5
@AutoItX64 = 0
@Compiled = 0
@OSArch = X64
@OSVersion = WIN_10
Scriptline = 2906
Number = -2147352567
WinDescription = Exception occurred.
Description = The operation failed.
Source = Microsoft Outlook
HelpFile = 
HelpContext = 0
LastDllError = 0


We intercepted a COM Error !  Number: 0x 80020009
Description: Exception occurred.
At line: 3060

@AutoItVersion = 3.3.14.5
@AutoItX64 = 0
@Compiled = 0
@OSArch = X64
@OSVersion = WIN_10
Scriptline = 3060
Number = -2147352567
WinDescription = Exception occurred.
Description = The operation failed.
Source = Microsoft Outlook
HelpFile = 
HelpContext = 0
LastDllError = 0

Share this post


Link to post
Share on other sites

What id in line 3060 ?

 


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest beginning - communication with GitHub REST API Forum Rules *
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 APIErrorLog.au3 UDF - A logging Library *

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 * 

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 TaskScheduler

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: 2019-10-01

Share this post


Link to post
Share on other sites

Sorry, I forgot to run it with the stripped version last time. 

Here are the real results:

 

(This happened once at the beginning) 

We intercepted a COM Error !  Number: 0x 80020006
Description: Unknown name.
At line: 878
Local $oOL = ObjGet("", "Outlook.Application")

@AutoItVersion = 3.3.14.5
@AutoItX64 = 0
@Compiled = 0
@OSArch = X64
@OSVersion = WIN_10
Scriptline = 878
Number = -2147352570
WinDescription = Unknown name.
Description = 
Source = 
HelpFile = 
HelpContext = 
LastDllError = 0


(These two happen at least 60 times out of 65 runs)

We intercepted a COM Error !  Number: 0x 80020009
Description: Exception occurred.
At line: 1114
$aProperties[$iCounter][1] = $oProperty.value

@AutoItVersion = 3.3.14.5
@AutoItX64 = 0
@Compiled = 0
@OSArch = X64
@OSVersion = WIN_10
Scriptline = 1114
Number = -2147352567
WinDescription = Exception occurred.
Description = The operation failed.
Source = Microsoft Outlook
HelpFile = 
HelpContext = 0
LastDllError = 0


We intercepted a COM Error !  Number: 0x 80020009
Description: Exception occurred.
At line: 1048
Local $iItems = $oItems.Count

@AutoItVersion = 3.3.14.5
@AutoItX64 = 0
@Compiled = 0
@OSArch = X64
@OSVersion = WIN_10
Scriptline = 1048
Number = -2147352567
WinDescription = Exception occurred.
Description = The operation failed.
Source = Microsoft Outlook
HelpFile = 
HelpContext = 0
LastDllError = 0

Share this post


Link to post
Share on other sites

Unknown name at the beginning is OK. AS _OL_Open tries to connect to a running instance. If none exists, then you get this error and Outlook gets started.

The operation failed for $oProperty.value means that the property does not exist or the value has not been st.

I can only imagine that for $oItems.Count "The operation fails" means that $oItems isn't an object.
 


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-10-24 - Version 1.4.14.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-02-09 - Version 1.4.1.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (NEW 2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

Thank you. I know this is the worst thing I could do but I commented out the error message and the code works fine (for now) so I think that will be my final fix. 

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

    • By ahha
      Okay I know this will be one of those - how stupid can I be when I see the answer but I'm baffled at the current time.
      #include <Debug.au3> Local $aArray[11][2] = [ [10,10],[1,5],[2,0],[3,0],[4,"M"],[5,0],[6,0],[7,0],[8,"M"],[9,0],[10,2] ] _DebugArrayDisplay($aArray, "$aArray") Local $iCount = 0 ;init Local $i For $i = 1 to $aArray[0][0] If $aArray[$i][1] = "M" Then $iCount = $iCount + 1 ;debug ;MsgBox($MB_OK + $MB_TOPMOST, "Debug", "$aArray[$i][0] = " & $aArray[$i][0] & @CRLF & "$aArray[$i][1] = " & $aArray[$i][1]) EndIf Next MsgBox($MB_OK + $MB_TOPMOST, "Info", "M's found = " & $iCount) When I run this it states there are 8 M's in the array.
    • By PeterVerbeek
      This topic give you access to an AutoIt functions library I maintain which is called PAL, Peter's AutoIt Library. The latest version 1.19 contains 194 functions divided into these topics:
      window and screen mouse and GUI GUI controls logics and mathematics string, xml string and file string dialogues and progress bars data lists: lists, stacks, shift registers and key maps (a.ka. dictionaries) miscellaneous: logging/debugging, process and system info A lot of these functions were created in the development of Peace, Peter's Equalizer APO Configuration Extension, which is a user interface for the system-wide audio driver called Equalizer APO.
    • By topgundcp
      Hi, 
      This is my very first post in this forum and am also new with Autoit programming so be easy on me.
      Below is the code that I am trying to get the index of the item selected. No problem getting the text.
      Case $listEdition   ; handle of the list             local $index=0             $item=GUICTRLRead($listEdition)    ; This will return the text in the list             ; ==============   The loop below always fails  ==================             ; Meaning _GUICtrlListView_GetItemSelected($listEdition, $i) always return FALSE. WHY ???????              For $i = 0 To $editionArray[0] - 1   ; The content of the list in an array where editionArray[0] contains total count of items                 If _GUICtrlListView_GetItemSelected($listEdition, $i) Then                     $index = $i                     exitloop                 EndIf              Next              ;===================================================             ConsoleWrite( "Select Edition:     " & $item & "  index: " & $index & @CR) ....... Please look at the comments in the code & the pix attached.
      _GUICtrlListView_GetItemSelected($listEdition, $i) always returns FALSE.
      Another problem is on the list. It also populate  the total count of items from the Array. How can I skip this item from populating to the list ?.
      Please advise and thanks

    • By n0ktar
      is it possible to make a wall chams in rainbow six siege using autoit scripts? tell me please and how . 
    • By Rskm
      Hi, I am using excel as input media for my program. The excel file (i tried with .xls, .xlsx and .xlsm format) has inputs which the autoit script reads during the run and performs few calculations. Some times (not always), after the run, when i try to open the excel file manually, the file doesnt open at all in excel. see the screenshot attached. However, if the execute the autoit script, the scripts still reads the existing data from that excel and performs the calcs. I copied the excel file to another computer and there too, it doesnt open.  So, after this, i cannot edit the excel forever (if i need to change any inputs). It is only this particular file that got affected. other excel files works normal.  What could be the problem here.  please help as this is a new challenge for me during my program development. 

×
×
  • Create New...