Delete outlook mail message won't work

Dear community,

Recently I encountered an issue regarding deleting outlook mail messages. Where in the past there were no issues, recently when trying to delete an outlook mail message, the output panel shows the following message:
“Operation not supported! The mail item is in a folder that is not associated with an account”

The mail is in a subfolder of a folder of a shared mailbox.

The following actions/solutions have already been taken/tried:

  • Open application Outlook, try to delete the message, and close outlook (didnt work)
  • Move the mail message to the Deleted Items folder (didnt work)
  • In the properties panel of the subfolder, give the most rights to the ‘robotaccount’ so that it has the correct rights to delete the mail message

If someone encountered the same issue or knows how to fix this, please let me know!

The associated exception details are below:
RemoteException wrapping System.ArgumentException: Operation not supported! The mail item is in a folder that is not associated with an account.
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance,
ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)