Jump to content

Recommended Posts

Posted (edited)

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

@Jos I do not want to sound stupid but I do not know what that is.  (no, I do not or at least I think I do not)

How would I go about getting one?

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
Posted (edited)

@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 (2019-07-24 - Version 1.3.6.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-11-07 - Version 1.3.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - 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 (2019-07-24 - Version 1.3.6.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-11-07 - Version 1.3.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - 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 cptHark
      Hello I want to conect to a Network with DriveMapAdd.
      This worked just fine but when you restart the Computer the Mapped drive is gone.
      So i used the persistent mapping flag and that seemed to work, too.
      However when the Computer is restarted I cant connect to the Network because it doesnt remember the Username and password I ave it the first time.
      How do I fix this?
      My Code:Func
      setdrivem()
          DriveMapAdd("M:", GUICtrlRead($driveM),1, GUICtrlRead($netzuser),GUICtrlRead($netzpassword) )
      EndFunc
      $netzuser and $netzpassword are set earlier in the gui and it works right after executing the script but i want it to stay connected
    • By nooneclose
      Morning, I am wondering is there is a way to prevent a script from ending/crashing when a "Subscript used on non-accessible variable" error occurs? 
      Here is some of my code:
      $aItems = _OL_ItemFind($oOutlook, $mFolder[1], $olMail, "[UnRead]=True", "Subject", "Maintenance Request", "EntryID,Subject", "", 0) If @error Then Sleep(2000) LoopUnreadEmails() ;Exit MsgBox(48, "", "@error = " & @error & ", @extended: " & @extended & " at line: " & @ScriptLineNumber) EndIf Error Msg:
      (371) : ==> Subscript used on non-accessible variable.: $aItems = _OL_ItemFind($oOutlook, $mFolder[1], $olMail, "[UnRead]=True", "Subject", "Maintenance Request", "EntryID,Subject", "", 0) $aItems = _OL_ItemFind($oOutlook, $mFolder^ ERROR I know that error occurs very rarely and at random. But like with most errors "in this case" I can use recursion to fix it. 
      I just recall the function and it will and has fixed itself. But this "Subscript used on non-accessible variable" just ends the script.
      Like I said before, is there a way to allow the script to keep running or call a function when this error occurs instead of just ending?   
    • By max23ed
      Hi,  i'm recording a setup for a program using mouse clicks , however, the problem is when the setup installs (the progress bar showing) the auto generated script by the recorder will not have a winwait() or sleep() to click the "finish" button when the setup is completed. is there anyway to  do that automatically?
    • By mlazovjp
      I am going through the AutoIt Wiki and soaking up a lot of great information.  On the “Best Coding Practices” page at https://www.autoitscript.com/wiki/Best_coding_practices#Scopes_of_Variables there seems to be a minor detail missing.  In the “Variable Initialization” section at https://www.autoitscript.com/wiki/Best_coding_practices#Variable_Initialization , there are references to a data type $o, but in the table listing prefixes and their data types, there does not appear to be a prefix “o”.  I assume that this is for Object?
    • By nooneclose
      I have searched for almost an hour and I still cannot find examples and or the code that I am looking for concerning my question. 
      I am wanting to capture/read/send (however you want to say it) the console output to a file.
      Here is a picture of what I want to send to a file after the script runs. (what is in the console output/window after the script runs)

       
×
×
  • Create New...