Hi all,
I’m developing a long running process using the UiPath.persistence.activities package version 1.0.1 (not using the latest “UiPath.persistence.activities” package version due to Orchestrator version not being the latest).
During the process I receive and process email messages using the Outlook activities. When an email with a specific subject arrives, I need to suspend the process: so I create a queue item with “Add Queue Item And Get Reference” activity, the queue item gets createc correctly. Then I have a “Wait For Queue Item And Resume” activity that throws the following exception:
19.10.4+Branch.support-v2019.10.Sha.fe819a658cad0585a64d2f8af94fad5c30b8d122
Message: Type 'System.Net.Mail.AlternateViewCollection' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
Exception Type: System.Runtime.Serialization.InvalidDataContractException
RemoteException wrapping System.Runtime.Serialization.InvalidDataContractException: Type 'System.Net.Mail.AlternateViewCollection' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.Activities.WorkflowApplication.IdleEventHandler.OnStage2Complete(IAsyncResult lastResult, WorkflowApplication instance, Boolean isStillSync)
at System.Activities.WorkflowApplication.EventFrame(IAsyncResult result)
I understand the exception from a technical standpoint, but I need a workaround.
Any ideas?
Thanks,
Giovanni Romeo