Get Mail: Value cannot be null. Parameter name: folderPath

Hello,
I am using the get mail in office 365 activities the contoguration is the following:


I get the error:
Get Mail: Value cannot be null.
Parameter name: folderPath
Can anyone help me?

@Liliana_Novais

can you remove and readd the values

apart from that run in debug and in locals panel check current values and see which is null

cheers

Hi check the spelling of folder location the path will be case sensitive and also it will be space sensitive avoid extra space
If still doesn’t work try assigning this value to a variable and pass the variable in property of mail folder path

@Liliana_Novais

1 Like

Hi @Liliana_Novais

The error “Get Mail: Value cannot be null. Parameter name: folderPath” in UiPath indicates that the folderPath parameter is missing or set to null. To resolve this issue, ensure that a valid folder path is specified in the Get Mail activity. If no path is provided, check if a default folder setting is required. Additionally, verify the configuration of the Microsoft Office 365 Scope if used, and ensure you have the necessary permissions. Running the workflow in debug mode can help identify where the null value is introduced. Lastly, make sure your UiPath packages are up to date to avoid bugs related to the Get Mail activity.

Happy Automation

@Liliana_Novais

latest version may be having some issues i guess

i also faced same kind of issue and many peoples also facing same issue
for now you can try with this method
Downgrade Microsoft Office 365 Package version to 1.11.1 then it worked

give a try

happy automation!!