activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated May 21, 2025

Mail troubleshooting

How to retrieve all category emails in a folder

If you want to retrieve all category (for example, Red) emails in a folder, use a Get Mail activity with the following value for the Query parameter: categories/any(a:a+eq+'Red+category')


Exchange online limits for sending/receiving emails

If you want to exchange online limits for sending/receiving emails, see Receiving and sending limits in the Microsoft official documentation.

Microsoft Graph throttling guidance

To learn more about Microsoft Graph throttling, see the Microsoft official documentation.

How to retrieve the emails from a Public Folder

Public folders are not supported in the Graph API.

Code: ErrorItemNotFound. Message: The specified object was not found in the store.

Issue: In older versions (for example, 1.11.1 or 1.14.1), the Send Mail activity intermittently fails if multiple attachments are added to an email. The error message displayed is: "Code: ErrorItemNotFound. Message: The specified object was not found in the store."

The error occurs because the activity sends two separate requests to the Graph API. The first request creates the email object and adds the first attachment, and the second request appends the second attachment. In some cases, the second request is faster and the Graph Explorer doesn't have time to create the mail object before trying to append a second file.

Solution: We recommend you upgrade to a newer version of the package or surround the Send Mail with a Retry Scope activity.

Code: 0x80004004. Message: A program is trying to send an e-mail message on your behalf.

When the application tries to access your Outlook client to send an email, and your antivirus software is inactive or expired, Outlook-based activities fail with an error message stating that a program is trying to send an e-mail message on your behalf and that you should verify that your antivirus software is up-to-date.

As a solution, apply the steps described in this troubleshooting guide from the Microsoft official documentation: A program is trying to send an email message on your behalf warning.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2025 UiPath. All rights reserved.