Get Exchange Mail Messages

email
p_confirmed
exchange

#1

Hello,

I´m having trouble using the Get Exchange Mail Messages Activity,

I always receive the following error message:

Newtonsoft.Json.JsonSerializationException: ISerializable type ‘Microsoft.Exchange.WebServices.Data.ServiceXmlDeserializationException’ 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 1277.

I do not know where is the problem, Can someone help me?

Thanks,


#2

I generally receive this error when I have updated my password due to password policy. COnfirm you are using the correct details


#3

I have the same problem trying to send email with send exchange mail activity, but my credentials are correct. Any idea? Thank you!


#4

What configuration are you using? Studio, Activities, Exchange version?


#5

I’m having the same issues…

Here is the message from the clipboard:

An error has occured

Source: Newtonsoft.Json

Message: ISerializable type 'Microsoft.Exchange.WebServices.Data.ServiceLocalException' 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 1242.

Exception Type: JsonSerializationException

Newtonsoft.Json.JsonSerializationException: ISerializable type 'Microsoft.Exchange.WebServices.Data.ServiceLocalException' 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 1242.
   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.<OnJobCompleted>b__0()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Any help would be greatly appreciated.


#6

I’m trying to use the GETEXCHANGE mail message package BECAUSE The getOutlook mail message is limited in the elements (Sender, attachment etc) programmatically accessible …

But I have the same issue you all have … and no post with possible solutions (or at least possibile reasons for blocking issues like that) ?

thanks


#7

Can you try again with the latest mail package (Gallery feed in Package Manager)
Also, make sure you properly set up all the properties inside the Get activity


#8

removed and dowloaded again … No change. The Settings basically are correct because if i try to get programmatically (via C#) the service with same parameters everythings seems working …


#9

The error says the the request made from the activity is incorent. Do you use Autodiscover? Can i see a printscreen of the activity with its properties set up by you?


#10

Hi
Has anyone found out a solution for this?


#11

I am getting the same exception when trying to read emails using “Get Exchange Mail Message” activity.


#12

Hi,
does anyone find some clues on this issue ?

Regards,
Lino


#13

Still looking for an answer on this topic, I face the same error like others when “GetExchange Mail Message” is used.


#14

Other Exchange activities work?


#15

hi! did you find the answer :slight_smile: ?


#16

Not sure if i have the right answer, but in my case it was later identified that my company have blocked firewall to POP3 ports. Once we enabled it, it worked.


#17

Hi,

Have anyone got the correct solution for this?

I am also getting the same error.

My UiPath Version is 2018.2.3

Thanks,
Karthika S


#18

Hi Team,

I am getting below error while getting mails from exchange, using the Mail activity 1.1.6562.21018 version,

“Get Exchange Mail Message : The response received from the service didn’t contain valid XML.” and below error,

But, If I have used Mail activity 1.2.6863.29868 version, it is giving the result. Is there any issue in getting mails from Mail activity 1.1.6562.21018 version? Can anyone please explain me.

Thanks,
Karthika S