Jump to content

[SOLVED] Error 1073741819


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

  • Developers

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
 

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

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.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

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

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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

Link to comment
Share on other sites

What id in line 3060 ?

 

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

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

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

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