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

Hi there,

I am using a Microsoft Office 365 ForEachEmailConnections activity and within that activity I’m using a Microsoft Office 365 ‘Download Email Attachments’ activity. I use a For Each activity after that to iterate through every attachment and perform a few actions. One of them is to use a ‘Read Range’ to read the current attachment. This works perfectly until we encounter an e-mail with two attachments, that’s when I get this exception:

Read Range: Error retrieving file. Please revise ‘Download Email Attachments’ activity from where the file ***** originated. Code: ErrorItemNotFound
Message: The specified object was not found in the store., The process failed to get the correct properties.

I know that there’s been multiple topics about this issue, and even the ‘Mail troubleshooting’ docs have a paragraph dedicated to this, but none offer solutions that fix my issue. I have the latest dependencies, I have used retry scopes around my e-mail activities and my Read Range, but nothing works.

I’m using the following dependencies:
MicrosoftOffice365.Activities = 3.0.14
UiPath.System.Activities = 25.4.2
UiPath.Excel.Activities = 3.0.1

I’d appreciate any other potential solutions to this problem.

@AA12

Can you show a screenshot fo your flow and a screenshot when the exception occurs exactly..checking variblea when a exception occurs is a good way to understand if something is off

Cheers

Hi Anil,

Sorry, but I cannot show you a screenshot. As mentioned in my message, the exception occurs at a regular Read Range activity. This is the order of all the activities:

  1. Microsoft Office 365 ForEachEmailConnections activity to iterate through all e-mails in a shared mailbox
  2. Microsoft Office 365 ‘Download Email Attachments’ activity to download all attachments in that e-mail
  3. For each activity to iterate through every attachment in that e-mail
  4. Then we invoke a new workflow
  5. In that workflow we use a Read Range activity to read the current attachment (in_CurrentAttachment.LocalPath is used as the path). This is where the exception occurs.

I’ve solved my own problem. At the end of the flow the email gets moved which is a problem because obviously then the second attachment can’t be found… dumb mistake :sweat_smile: This topic can be closed!

1 Like

@AA12

Thats the reason asked for a screenshot..but glad you resolved

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.