Hi guys
I want to be able to get/move/delete etc. emails on the shared mailbox. This mailbox is not placed on the office365.
I tried using ‘Get Exchange Mail Message’ activity and it seems that server itself is correct but every time I receive an error. I tried this with SharedMailbox specified, MailFolder specified as “sharedmailbox@domain.com\Inbox” and basically anything I could think of. This is the error I receive
An error has occured
Message: ISerializable type ‘Microsoft.Exchange.WebServices.Data.ServiceResponseException’ does not have a valid constructor. To correctly implement ISerializable a constructor that takes SerializationInfo and StreamingContext parameters should be present. Path ‘Error’, line 1, position 1181.
Source: Newtonsoft.Json
Exception Type: JsonSerializationException
Summary
Newtonsoft.Json.JsonSerializationException: ISerializable type ‘Microsoft.Exchange.WebServices.Data.ServiceResponseException’ does not have a valid constructor. To correctly implement ISerializable a constructor that takes SerializationInfo and StreamingContext parameters should be present. Path ‘Error’, line 1, position 1181.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateISerializable(JsonReader reader, JsonISerializableContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at UiPath.Shared.JsonParser.DeserializeObject[T](String jsonValue)
at UiPath.Models.UiPathDuplexProxy.<>c__DisplayClass21_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
While this is the error I receive in the Ouput Pane
Get Exchange Mail Messages : The SMTP address has no mailbox associated with it.
I tried to search for a solution based on the error in the output pane. What I came across is this topic
Social MSDN Forum - SMTP Error while impersonating
I also did a check of this shared mailbox I’m trying to get emails from on Microsoft Connectivity Test with Sevice Account Access (Developers). On this site test is failed if I enable “Use Exchange Impersonation” with an error “ErrorImpersonateUserDenied” and it’s successful if this option is disabled.
This led me to believe that the problem may be caused by UiPath exchange activity trying to impersonate a mailbox but I don’t know if there’s a way to make UiPath not do this.
Any help would be much appreciated.
Thanks