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
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
  • Developers
Posted

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

Posted

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.

  Reveal hidden contents
Posted (edited)

@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
Posted

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.

  Reveal hidden contents
Posted

  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:

  Reveal hidden contents

 

Posted

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

Posted

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:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

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

Posted

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:

  Reveal hidden contents

 

Posted

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. 

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
×
×
  • Create New...