-2147352567 Cannot move the items

I have a VB.Net application that automates Outlook using Interop. One function of the application is to move an Outlook message to a subfolder of a shared inbox when the message has been processed, using MailItem.Move(Folder). About 50% of the time, the
move of the message fails with error -2147352567 returned. Is there any way of determining why this is happening?
Thanks in advance.

Hi Eugene,
I'll paste the relevant code below. It's run on the user's PC in a VB.Net 2010 application.
Public Sub ArchiveCompletedMessage(ByRef pstrMessageID As String)
Dim objOutlook As Object = New Outlook.Application
If IsNothing(objOutlook) Then
MsgBox("Error: An attempt to access or start Outlook has failed. Please contact the Help Desk.", MsgBoxStyle.Exclamation, gstrAppName)
Exit Sub
End If
Dim objNameSpace As Object = objOutlook.GetNamespace("MAPI")
If IsNothing(objNameSpace) Then
MsgBox("Error: An attempt to access the Outlook Namespace has failed. Please contact the Help Desk.", MsgBoxStyle.Exclamation, gstrAppName)
objOutlook = Nothing
Exit Sub
End If
Dim objMessage As Outlook.MailItem = objNameSpace.GetItemFromID(pstrMessageID)
Dim astrFolders() As String = Split(gstrDeptMailboxActioned, "\")
Dim intCount As Integer = 0
If currentSettings.IsDebugMode = True Then
MsgBox("Move e-mail: step 1")
End If
On Error Resume Next
Dim objFolder As Object = objNameSpace.Folders(astrFolders(0))
If Err.Number <> 0 Then
MsgBox("An error has occurred when trying to access the departmental processed mailbox '" & astrFolders(0) & "'." & vbNewLine & vbNewLine & Err.Number & " - " & Err.Description, MsgBoxStyle.Exclamation, gstrAppName)
On Error GoTo 0
Exit Sub
End If
On Error GoTo 0
If currentSettings.IsDebugMode = True Then
MsgBox("Move e-mail: step 2")
End If
Dim objFinalFolder As Outlook.Folder = objFolder
Dim bolFolderFound As Boolean = False
For intCount = 1 To astrFolders.GetUpperBound(0)
For Each objSubFolder As Outlook.Folder In objFinalFolder.Folders
If objSubFolder.Name = "Inbox" Then
objFolder = objSubFolder
End If
If objSubFolder.Name = astrFolders(intCount) Then
objFinalFolder = objSubFolder
bolFolderFound = True
Exit For
Else
bolFolderFound = False
End If
Next
Next
If bolFolderFound = False Then
MsgBox(" An atempt to access folder " & gstrDeptMailboxActioned & " has failed. The current e-mail will not be marked as read or moved to the actioned folder.", MsgBoxStyle.Information, gstrAppName)
objNameSpace = Nothing
objOutlook = Nothing
Exit Sub
End If
If objMessage.UnRead Then
objMessage.UnRead = False
End If
On Error Resume Next
objMessage.Move(objFinalFolder)
If Err.Number <> 0 Then
MsgBox("An error occurred when trying to move the e-mail to the actioned folder. The error message follows:" & vbNewLine & vbNewLine & "[" & Err.Number & "] - " & Err.Description & vbNewLine & vbNewLine & "Please move the message manually.", MsgBoxStyle.Exclamation, gstrAppName)
objMessage = Nothing
On Error GoTo 0
Exit Sub
End If
On Error GoTo 0
Dim objTmpMessage As Outlook.MailItem
For Each objTmpMessage In objFolder.Items
If objTmpMessage.EntryID = pstrMessageID Then
MsgBox("The e-mail you have just processed was not moved into the actioned folder; please move the message manually to avoid case duplication.", MsgBoxStyle.Information, gstrAppName)
Exit Sub
End If
Next
End Sub

Similar Messages

  • Cannot move the items. You don't have appropriate permission to perform this operation.

    Recently, I upgraded outlook from 2007 to 2010, but I got a problem that I cannot move any mails to personal folder and the error msg is "Cannot move the items. You don't have appropriate permission to perform this operation.".Even I create a new personal
    folder in 2010 and try to move mails to it, I still get that error message. 
    Can anyone help me out please?
    Thanks so much in advance.

    I've experienced the same thing and was unable to find this key that Tony mentioned.  After searching numerous sites, i found this instruction set below and tried it and it worked.  Per my case, the key PstDisableGrow was set to 1 under ...\Software\Polices\...
    instead.  I disabled it and bam, it worked.  Give this a try...
    Your System Administrator has either enforced a group policy to prevent pst files growing in size or a registry key is present preventing the growth of pst files. One of the following
    registry keys will be present based on your version of office (11.0 for Office 2003, 12.0 for Office 2007 and 14.0 for Office 2010). The example below is for Office 2010 (14.0):
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\PST  - DWord Value: 'PstDisableGrow', Value: 1
    HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\Outlook\PST  - DWord Value: 'PstDisableGrow', Value: 1
    Best of luck!

  • P6 Professional R8.3 - (Cannot move selected items because the result will exceed the limit of WBS tree maximum levels)

    Hi,
    Has anyone encountered this error "Cannot move selected items because the result will exceed the limit of WBS tree maximum levels"?
    Please advise if there's any way around / solution to this. http://s8.postimg.org/bj900spcl/1_error.jpg
    Thanks.

    Thank you so much MichaelRidino!

  • Cannot move the pages from one document to another

    Hi,
    I cannot move the pages from one document to another, abobe gets crashed. I am not sure but I think this was happening when I try to copy or move the threaded content. How to resolve this, this is happening in both CS4 and CS5. Can anyone help me?

    Thanks for ur reply.
    1. Open two documents, for ex doc1 and doc2, doc1 contais 4 pages, doc2 contains 2 pages
    2. Using Move Pages from the Pages panel menu in doc1, moving 1st two pages to doc2
    Move Pages  : 1-2
    Destination   : After page 1
    Move to        : doc2
    Actually I was not able to copy the textframe which is linked with another, immediately it crashes.

  • After creating a playlist, it becomes locked or frozen and I cannot move the songs around in different order.

    After creating a playlist, it becomes locked or frozeen and I cannot move the songs around in different order.

    Select the very first column header (above the numbers) and then try it.

  • My is MacBook pro is frozen and I cannot move the mouse and there is lots of batter still left.  Any suggestions?

    My MacBook Pro is frozen and I cannot move the mouse and I have plenty of batter left on computer.  Any idea on how to unfreeze mouse or computer.  Help?

    Press Command + Control + Power button and Force Restart your Macbook Pro if you do not have any Important Work open as this will Turn OFF and Turn ON your Mac and any Unsaved Data will be lost.

  • TS1347 Just downloaded ios7 on my iPad2. Hate that I cannot see the items in my calendar. The letters are way too small and are grey in color. I need the fonts to be dark and very defined...I have health issues-poor vision.

    Just downloaded ios7 on my iPad2. Hate that I cannot see the items in my calendar. The letters are way too small and are grey in color. I need the fonts to be dark and very defined...I have health issues-poor vision.

    Settings>General>Accessibility>Increase Contrast
    Settings>General>Accessibility>Bold Text
    are some settings that may help.
    There are other settings there ...they may not be to your liking but try them all anyways.
    But that's about all you can do for now...except to voice your opinion to Apple here:
    http://www.apple.com/feedback/ipad.html

  • My iPod Nano FM is locked in one place and I cannot move the dial to the right past 90.0

    How can I unlock the FM radio on my iPod Namo dial which is locked in place at 90.0 and I cannot move the dial to the right?

    Sorry typo it had a 30 pin place to plug in the iPod Nano

  • When I try to move an email to trash,  I get a pop up window saying it cannot move the email to trash,  however; it does delete the email.  How can I stop the message pop-up?

    When I try to move an email to trash on my new Iphone 5,  a get a pop up window saying it cannot move the mail to trash.  Any ideas how to get rid of the pop up window??

    I usually get that message when I have low/weak cellular/wifi signal.

  • "SharePoint Designer cannot display the item" error when edit workflow

    Hi
    I create workflow for sharepoint list in version 2007. Then upgrade sharepoint form version 2007 to 2010. Now when I want to edit this workflow, get this error:
    “SharePoint Designer cannot display the item.
    What you can try:
    Click the Refresh button or press F5 to refresh the content from your site.
    Go back to the previous page
    Most likely causes:
    The file has been deleted from the site.
    The site is encountering problems.”
    What is the problem?
    Thanks.

    Hi,
    Have you used custom activity in your workflow? We may come across this issue when we use custom activity. A workaournd is to modify the Workflows XOML file, and remove custom activity reference from it. And restart your SharePoint designer. See below blog.
    http://saiabhilash.blogspot.com/2011/11/sharepoint-designer-cannot-display-item.html
    Or a quick workaround is recreate the workflow in SharePoint Designer 2010.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • Cannot move the Project length marker! GB 10.0.2

    Hi, I'm having problems moving the project length marker in my GarageBand 10.0.2 file.  I need to export 2 short tracks, and so I need to move the project length marker to the end of the short tracks before I export them.  But the project length marker stops at the end of the longest track even though the track is muted out...and this means I cannot move the project length marker to the proper position.  It worked fine and then it stopped working.  Please help! 

    Then mark the section of the song that you want to export with the cycle region. The end-of-song marker does not matter, if the yellow cycle region is active.  Only the cycle region will be exported.

  • I opened a high density .tiff file in photoshop but I cannot move the object

    I opened a high density .tiff file in photoshop but I cannot move the object

    Odds are the image is the same size as the document. You can either add canvas Image>Canvas Size... , use the crop tool and drag outwards to create more space, or reduce the size of the image ctrl-t or command-t then scale the image inward.

  • Failed to start workflow. The workflow cannot access the item that it has been applied to.

    I have a quick question for you and it would be great if you can answer me on this.
    I'm working through SharePoint Workflow issue (developed using Nintex) that started recently where people are getting workflow error and I don't see issues if I submit it myself. Current error. - "Failed to start workflow. The workflow cannot access
    the item that it has been applied to."
    I haven't made any major changes to Workflow except for changing email notification content and publishing it. My question is, do I need to publish the rest of the workflows too that are associated to the list after I publish changes of one workflow? Looks
    like users have required permissions to submit the form. Please let me know how to get rid of this error.
    smith

    Hi Smithspd,
    According to your description, my understanding is that your users got a workflow error, and the workflow is created by Nintex.
    For SharePoint Designer workflow, once we do any change in a workflow, we need to re-publish the workflow.
    For your issue, I suggest you re-publish the workflow, compare the result.
    In addition, as your workflow is created by Nintex and this forum is for SharePoint Designer, I suggest you ask Nintex support or forum for better help.  Thanks for your understanding.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • I cannot drag the items in my ipod that were not purchased on itunes into my itunes library or playlists. How can I fix this?

    I cannot drag the items in my ipod that were not purchased on itunes (they were added from a CD) into my itunes library or playlists. How can I fix this?

    You can only transfer music from itunes to your devices and not the other way round.

  • How can I move the items in camera roll to my PC?

    How can I move the items in camera roll to my PC. The only option I see is to e-mail each one. Are there other options?

    When you plug you iphone into the computer you should get a box that pops up with the heading "Apple iPhone" and below it says "camera connected". Your computer is treating the iPhone like your digital camera. Below this is several choises. Choose "Microsoft scanner and camera wizard". This will lead you through the steps to create a folder in your computer photo file and you can copy all your photos to that file.

Maybe you are looking for

  • Error during application of stack

    Hi all, I am applying the stack using JSPM. I got an error An error occured during execution of JSPM_PROCESS Phase. java.lang.StringIndexOutOfBoundsException: String index out of range: -9 Provide me solution to solve this error.

  • APPLE'S GOT SOME EXPLAINING TO DO!

    Everytime I connect my ipod to my computer it takes like 5 mins to do anything and my computer freezes. Then the do not disconnect display comes on and when i try and safely remove it, it says its used by another program?? EXPERIENCED PEOPLE PLEASE H

  • ERROR WHEN GENERATING EXPORT DATA SOURCE

    Dear Members, I am getting an error when generating export data source for Info Cube.  I'm creating an Info Cube based on already existed info cube.  Literally I am copying all the settings of an info cube to new Info Cube.  The scenario is to load t

  • Cannot open Notmad with MTP firmware : Zen X

    I cannot open Notmad even though it is showing as connected in the system tray yes I have switched the driver mode to MTP/playforsure and yes the Zen is using the 2.0.. whatever firmware yes I have all the new plugin etc Yes mediasource and WMP 0 wor

  • What external hard disk will work on both windows and mac?

    I need to buy a hard disk that will work in both mac and windows. i live in India and will buy it from ebay.in Can you please suggest a 2 TB hard drive (external)