Hi,
I got this exception (only 3 times when creating 162 records) in my Plugin, triggered by an Action. So the Plugin was successful 159 times.
System.ServiceModel.CommunicationException: A TCP error (997: Overlapped I/O operation is in progress) occurred while transmitting data. ---> System.Net.Sockets.SocketException: Overlapped I/O operation is in progress
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.ServiceModel.Channels.SocketConnection.ReadCore(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout, Boolean closing)
--- End of inner exception stack trace ---
This is the line of code that was failing 3 times out of 162:
Entity entity = service.Retrieve(context.PrimaryEntityName, context.PrimaryEntityId, new ColumnSet(true));
How can I handle this type of exception?
Is it possible to rerun the Plugin?
Regards
Kjetil