10-08-22 05:45 PM
ERROR: Internal : Could not execute code stage because exception thrown by code stage: The operation failed. |
10-08-22 10:31 PM
11-08-22 10:29 AM
Hi Eric,
Cached Exchange Mode is enabled, but I don't have the Download Shared Folders option checked.
I'll check that and re-run the process to see if that makes a difference.
Thanks,
11-08-22 10:54 AM
Hi,
Unfortunately, that hasn't made a difference. 😞
11-08-22 01:52 PM
11-08-22 02:22 PM
Hi Eric,
Thanks for getting back to me again. Unfortunately that setting is not something I can change.
These are the screenshots of the folder for you:
Full Name is "Subfolder Consumed"
This is the code of that action:
Dim app = CreateObject("Outlook.Application")
Dim _nameSpace As Microsoft.Office.Interop.Outlook.NameSpace = app.GetNameSpace("MAPI")
Dim folder As Folder
Dim item = _nameSpace.GetItemFromID(Entry_ID)
If Shared_Mailbox <> "" Then
Dim recipient = _nameSpace.CreateRecipient(Shared_Mailbox)
recipient.Resolve()
If recipient.Resolved Then
folder = _nameSpace.GetSharedDefaultFolder(recipient, Outlook_Folder_ID)
Else
Dim ex1 As New System.Exception(VbCrlf + "Failed to resolve shared mailbox '" + Shared_Mailbox + "'.")
Throw ex1
End If
Else
If Account_Display_Name <> "" Then
Try
Dim aa As List(Of Account) = _nameSpace.Accounts.Cast(Of Account).ToList()
folder = aa.Where(Function(x) x.DisplayName = Account_Display_Name).FirstOrDefault().DeliveryStore.GetDefaultFolder(Outlook_Folder_ID)
Catch ex As System.Exception
Dim ex1 As New System.Exception(VbCrlf + "Failed to retrieve default folder for Account Display Name '" + Account_Display_Name + "'." + VbCrlf + ex.Message)
Throw ex1
End Try
Else
folder = _nameSpace.GetDefaultFolder(Outlook_Folder_ID)
End If
End If
If Destination_Folder <> "" Then
For each name as string in Destination_Folder.Split("\")
Try
folder = folder.Folders(name)
Catch ex As System.Exception
Dim ex1 As New System.Exception(VbCrlf + "Failed to locate folder '" + name + "'." + VbCrlf + ex.Message)
Throw ex1
End Try
Next
End If
New_Entry_ID = item.Move(folder).EntryID
FYI, the folder that does work in test is exactly the same name
Thanks,
11-08-22 06:25 PM
18-08-22 02:26 AM
@stephen Coleman - Were you able to resolve this issue ? Could you please let me know if you got any workaround on this issue. It would be really helpful!
@Eric Wilson - Even I'm facing the same issue as @StephenColeman mentioned.
However, I'm using the updated "Move Item" action as you suggested but still I'm facing the same issue when I'm moving the mails from one subfolder to another subfolder in the Shared Mailbox.
Could you please let us know what could be the reason for this issue?
BP Version: 6.10.4
ERROR: Internal : Could not execute code stage because exception thrown by code stage:
Error while trying to move item "xxxx (EntryID of the mail)". The operation failed.
Action used:
Folder directory path mentioned as suggested:
VBO downloaded from the DX Portal:
Downloaded VBO on : 17-Aug-22
------------------------------
Ramaseshan Subramani
------------------------------
18-08-22 04:50 AM
19-08-22 10:36 PM