Get outlook mail messages activity: the specified folder does not exist error

getting error while using “Get outlook mail messages” activity. I gave only mailfolder parameter. Checked language setting its English(united States), tried to kill outlook and start it and then used "get outlook… " activity. But no use, can anyone help me on this. Thanks in Advance!


Hi @Umar_Farooq

Killing and restarting Outlook, then waiting for it to fully load, can definitely help if the folder isn’t recognized initially due to a slow sync or startup lag.
adding a Retry Scope in UiPath with a delay and condition to check if Outlook is fully initialized before proceeding.

If helpful, mark as solution. Happy automation with UiPath

Just to add I am trying to access Outlook app installed in my machine

Hi @Umar_Farooq !
Make sure outlook is launched before using this activity, you can use start process activtiy given outlook exe path there.
To get outlook mail messages make sure that out property has List of Mail messages variable to save the unread email.

@Umar_Farooq,

Make sure you have Outlook desktop installed and configured on your machine and not the web app.

Also make sure you are passing the Account property as your configured email id.

You Can check below link for more:

Thanks for the quick replies, fyi: I am using 1.24.16 version of package

Ok @Umar_Farooq
Could you pls try to upgrade latest one i think 2.1.20. and also try to add a Retry Scope with a delay.

Happy Automation

changed the version to 2.1.20, but no use. same issue persisting

Are you using Get Outlook Desktop Mail Messages?

Hi @prashant1603765

I am using “Get outlook desktop mail messages”.

Hi @Umar_Farooq

Add your outlook account in get outlook mail message property and test the same

Thanks!

Hi sarvesh,

Did that already but no use, just asking do you think office repair can resolve the issue

Can you share the workflow. Run in debug mode step by step and check Local Pannell.
Or just create a fresh project and try their.

When I use “send outlook desktop mail message” I got below error:

Hi @Umar_Farooq

I think it might be your microsoft office issue. Please try to repair it or reinstall the same and try once again.

Thanks!

Hello @Umar_Farooq

Do you have several installations of Outlook on your machine?
Perhaps this could be the problem.

Alternatively try to run this command to update folder names in your Outlook:

  • Open Command Prompt from Start Menu
  • Write the following:
Outlook.exe /Resetfoldernames

Regards
Soren

Yes @Umar_Farooq
Pls repair / Reinstall the outlook application. and try to check manually. It should be open.

Could you please share the workflow

Are you using this activity inside Use desktop outlook App scope ??

just using “get outlook” activity. Not using in scope.