Mirra Posted May 6, 2016 Posted May 6, 2016 When i run the code for Contacts folder. Its working fine. But when i run for my mails folder getting error like below. Please help am a newbie. $vItem = $oOL.Session.GetItemFromID($vItem, $sStoreID) $vItem = $oOL.Session^ ERROR The code i use, Global $oOutlook = _OL_Open() $aItems = _OL_ItemFind($oOutlook,"*\Inbox\MDAT",$olMail,"","","","EntryID","",0,"") _ArrayDisplay($aItems, " _OL_ItemFind") $aOL_Properties = _OL_ItemGet($oOutlook, $aItems[1][0],$olMail,"") _ArrayDisplay($aOL_Properties) _OL_Close($oOutlook)
Mirra Posted May 6, 2016 Author Posted May 6, 2016 Just now, Mirra said: Sorry wrong code was uploaded.Below is the right one.When i run the code for Contacts folder. Its working fine. But when i run for my mails folder getting error like below. Please help am a newbie. $vItem = $oOL.Session.GetItemFromID($vItem, $sStoreID) $vItem = $oOL.Session^ ERROR The code i use, Global $oOutlook = _OL_Open() $aItems = _OL_ItemFind($oOutlook,"*\Inbox\MDAT",$olMail,"","","","EntryID","",0,"") _ArrayDisplay($aItems, " _OL_ItemFind") $aOL_Properties = _OL_ItemGet($oOutlook, $aItems[1][0]) _ArrayDisplay($aOL_Properties) _OL_Close($oOutlook)
water Posted May 6, 2016 Posted May 6, 2016 Can you please post the full error message you get in the SciTE output pane? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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
Mirra Posted May 12, 2016 Author Posted May 12, 2016 The below is the error i get in console. "C:\*\AutoIt3\Include\OutlookEX.au3" (2941) : ==> The requested action with this object has failed.: $aProperties[$iCounter][1] = $oProperty.value $aProperties[$iCounter][1] = $oProperty^ ERROR >Exit code: 1 Time: 3.244 Thanks, Water
water Posted May 13, 2016 Posted May 13, 2016 Which version of AutoIt do you run? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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
water Posted May 13, 2016 Posted May 13, 2016 Yes, but which exact version ? What do you get when you run MsgBox(0, "", @AutoitVersion) My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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
water Posted May 13, 2016 Posted May 13, 2016 That's what I feared. The Outlook UDF has not been tested with this version. Could be a bug with the new way AutoIt 3.3.14.x handles COM errors. Will post some code for you to play with My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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
water Posted May 13, 2016 Posted May 13, 2016 Search the following lines in the UDF source code (function _OL_Open): ; Activate the COM error handler for older AutoIt versions If $__iOL_Debug = 0 And Number(StringReplace(@AutoItVersion, ".", "")) < 3392 Then and replace them with ; Activate the COM error handler for older AutoIt versions If $__iOL_Debug = 0 And (Number(StringReplace(@AutoItVersion, ".", "")) < 3392 Or Number(StringReplace(@AutoItVersion, ".", "")) > 33120) Then Now the COM error handler should be activated when running a version of AutoIt that can be crashed by a COM error. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now