Get Exchange Mail Message Fails with URI Format Exception

Call Stack:
Message: Invalid URI: The format of the URI could not be determined.
Exception Type: System.UriFormatException
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri…ctor(String uriString)
at UiPath.Mail.ExchangeConnection.GetExchangeService()

Server is set to: “mail.ourcompany.int”
Domain: I have tried blank and “ourcompany”
Tried AutoDiscover instead of setting server and that timed out.

Hi @undecided

See this post, I hope it helps:

Hi! I use Get Exchange Mail Messages to retrieve all the messages from the mail. But I get an error: System.UriFormatException: Invalid URI: The format of the URI could not be determined. Can anyone please guide me? Here’s my snap of the exchange activity I use. I have input the server name, domain, username, password of the account. My domain is ‘outlook.office.com’. I think this might be the server issue but not sure. Please check is there any credentials issue or some other one??