Get Outlook Mail Message: The specified folder does not exist

Hi.

I have an issue on the Get Outlook Mail Message activity.

I have created an input file in an excel format.

I like to look up the value for the Mail Folder property using the input file, and set up the property in UiPath:

1

However, I’m getting the error “The specified folder does not exist.”

3

When I typed “Inbox” in the Mail Folder property, it worked:
2

Any advice would be greatly appreciated.

Thanks!

Input.xlsx (11.4 KB)
Main.xaml (12.6 KB)

@anna100

Its showing Folder does not exist because it checks for the folder name with quotes “Inbox” , so remove quotes in the assign activity mailFolder = “”“” + row(2).ToString.Trim + “”“” . Just mailFolder = row(2).ToString.Trim is enough.

And enclose with double quotes only if you pass the value as a String. In your case mailFolder is an variable so you dont have to enclose with double quotes.

1 Like

It worked! Thanks :slight_smile:

1 Like