Help me understand what the error is

I need to assign categories to emails in outlook. I use the code below, but it constantly throws an error “Set Outlook Mail Categories: An error occurred. Try again.”. What am I doing wrong?

RemoteException wrapping System.ArgumentException: Произошла ошибка. Повторите попытку.
в Microsoft.Office.Interop.Outlook.NameSpaceClass.GetItemFromID(String EntryIDItem,
Object EntryIDStore)
в UiPath.Mail.Outlook.Extensions.MailItemExtensions.GetItemFromID[T](NameSpace session,
String outlookEntryId)
в UiPath.Mail.Outlook.OutlookHelper.<>c__DisplayClass4_0.b__0(Application outlook)
в UiPath.Mail.Outlook.OutlookHelper.<>c__DisplayClass5_0.b__0(Application t)
в UiPath.Mail.Outlook.OutlookHelper.RunWithOutlook[T](Func2 func) в UiPath.Mail.Outlook.OutlookHelper.RunWithOutlook(Action1 action)
в UiPath.Mail.Outlook.OutlookHelper.ExecuteOutlookCommand(MailMessage mailMessage,
Action1 mailAction, Action1 meetingAction,
Action1 reportAction) в UiPath.Mail.Outlook.OutlookService.SetCategoriesOfMailMessage(MailMessage mailMessage, IEnumerable1 categories)
в UiPath.Mail.Outlook.Activities.SetOutlookMailCategories.<>c__DisplayClass11_0.b__0()
в System.Threading.Tasks.Task.InnerInvoke()
в System.Threading.Tasks.Task.Execute()

You don’t pass it in_TransactionItem. You have to pass it a MailMessage object.