HighlanderSword Posted November 9, 2020 Share Posted November 9, 2020 Hello, I'm using version 1.6.2. Several times the _ol_itemmove will fail with error = 1 and Extended Error 4. Error 1 = Error accessing the specified target folder , the same move will work 2 or 3 minutes later with no manual intervention. It is moving the email to an Exchange folder , any ideas what I can do to address this ? Link to comment Share on other sites More sharing options...
caramen Posted November 9, 2020 Share Posted November 9, 2020 Let me take my cristal ball to read your code. BRB My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
water Posted November 9, 2020 Share Posted November 9, 2020 Extended = 4 is returned by _OL_FolderAccess and stands for: Specified folder could not be found. How do you call _OL_ItemMove? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
HighlanderSword Posted November 9, 2020 Author Share Posted November 9, 2020 (edited) Hello, Its a standard call _ol_itemmove($oOutlook, $itemid, Default, $Strmovetofolder) Strmovetofolder = the full name of the folder And key thing to note , when it runs a minute or so later it works... Edited November 9, 2020 by HighlanderSword Link to comment Share on other sites More sharing options...
water Posted November 9, 2020 Share Posted November 9, 2020 You could call _OL_FolderAccess and on success pass the folder object to _OL_ItemMove. So you get more detailed error information from _OL_FolderAccess. But I have no idea why it works 2 or 3 minutes later. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
HighlanderSword Posted November 13, 2020 Author Share Posted November 13, 2020 ok, think I may have resolved the issue, but a loop in and when it gets the error sleep for 20 MS and then retry and it seems to work Link to comment Share on other sites More sharing options...
water Posted November 13, 2020 Share Posted November 13, 2020 Very, very strange error But I'm glad you have at least found a workaround My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
GokAy Posted November 13, 2020 Share Posted November 13, 2020 Hey, Just a thought. I got no experience with anything in this topic 😛 Is it possible Exchange Folder is locked sometimes, say when a sync is happening or something? Can you read folder attributes when the move fails? Link to comment Share on other sites More sharing options...
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