For Each Email Stopped working in existing workflow

Reaching out to all UiPath guru’s…

Orchestrator lists the following dependencies:


System Information: Studio 2025.0.167 STS

This was a working workflow and last time this executed was about 2 weeks ago.
When it ran today - it provided an unspecified error in the Orchestrator Log

Raw message: Object
message:
Reply to Email: An unspecified error has occurred. The activity used for this is UiPath.MicrosoftOffice365.Actvities.Email.ReplyToEmail and used the proper Data Type for Email to Reply.

While I do not know what caused this error Unspecified Error yet Any hints would be awesome as I am going in circles. (This error happens in Orchestrator as well as when I run it through Studio)

trying to troubleshoot I figured to upgrade In Studio to the MicrosoftOffice365Activities to 3.2.10 from 3.0.13 and UiPath.Mail Activities to 2.2.10 from 2.0.11

**This got me into a weird issue where As you can see starting from the Source: For Each Email below… For each email is complaining about the connection to Outlook ?

while if I downgrade in this back to 2.0.11 and 3.0.13 this error goes away and connection works. ** I would really like to understand how to resolve this (other than downgrading? Is this a known issue)

To recap 1) what causes this cannot find item configured with connection:
2) How can I figure out what this unspecified error means all of sudden? Data, Email, etc have not changed in Orchestrator as it ran just fine.

Source: For Each Email

Message: Cannot find item configured with connection eyJBY2NvdW50IjoiVHJleGluLTFAdHJleGluLmNvbSAoMSkiLCJPQXV0aEFwcERhdGEiOnsiQXBwbGljYXRpb25JZCI6IiIsIlRlbmFudElkIjoiIn0sIkNsaWVudFNlY3JldCI6bnVsbCwiUGFzc3dvcmQiOm51bGwsIlVzZXJOYW1lIjoiVHJleGluLTFAdHJleGluLmNvbSIsIkNlcnRpZmljYXRlQXNCYXNlNjQiOm51bGwsIkNlcnRpZmljYXRlUGFzc3dvcmQiOm51bGwsIkVudmlyb25tZW50IjoxLCJNb2RlIjowLCJTY29wZXMiOlsibWFpbC5yZWFkIiwibWFpbC5yZWFkd3JpdGUiLCJtYWlsLnNlbmQiXSwiVGltZW91dE1zIjo2MDAwMCwiRW1haWxBZGRyZXNzIjpudWxsLCJDb25uZWN0aW9uU2VydmljZURhdGEiOnsiQ29ubmVjdGlvbkFjY291bnROYW1lIjpudWxsLCJDb25uZWN0aW9uSWQiOm51bGwsIkNvbm5lY3RvciI6bnVsbH0sIlN0b3JlS2V5Ijoib2ZmaWNlMzY1LnRva2Vucy5tc2FsY2FjaGUuYmluMyJ9 at path Inbox/Recruiting In. System.AggregateException: One or more errors occurred. (Code: ErrorInvalidUser
Message: The requested user ‘XXX@XXX (1)’ is invalid.
ClientRequestId: 953f068d-ab5e-448a-b6b7-5bf7ded30d57
) —> UiPath.MicrosoftOffice365.Office365Exception: Code: ErrorInvalidUser
Message: The requested user ‘XXX@XXX (1)’ is invalid.
ClientRequestId: 953f068d-ab5e-448a-b6b7-5bf7ded30d57

Exception Type: UiPath.MicrosoftOffice365.Office365Exception

in 2.Start Processing.xaml
at ForEachEmailConnections “For Each Email”
at Sequence “Do”
at Office365ApplicationScope “Email Report Microsoft Office 365 Scope”
at Sequence “Check Queue and determine file type”
at Flowchart “Start Processing”
at _2_Start_Processing “2.Start Processing”
etc

@ton_roelandse

  1. For for each try to create a new sequence and check if the issue persists
  2. I hope you are using modern o365 activities
  3. For repluy to ..just to make sure recreate the variable for input and check or with new for each

Cheers

I will try - and report back - yes using modern O365 activities…

1 Like

Okay - I found the issue - and it could be user error but I strongly feel it is not… when this upgrade happened upgrade In Studio to the MicrosoftOffice365Activities to 3.2.10 from 3.0.13… a setting that I did not not notice in the Advanced Options for O365 scope card… → this → Connection Data Store Location… it defaulted to “Local” instead of “Orchestrator”… these 8 hours of my life I am not getting back :-)… so it is resolved…