Hi,
I am using crm online 2015.
I have a custom workflow that uses a foreach loop to iterate Leads and executes some code:
foreach (Entity ent in LeadMailActivities.ToList())
{
//sending emails...
}
The workflow was working fine for one year in my organization. Today, it crashes throwing this exception:
System.Runtime.Remoting.RemotingException: Object '/c78aa5bd_ad2d_4f66_b90c_06a7a9c109e7/82moizgdibj8due1jadvgz1m_11.rem' has been disconnected or does not exist at the server.
at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)
=> It seams that I have a big number of Leads and the garbage collector is cleaning them before Dynamics acheive the operation.
How can I resolve that please ?
*This post is locked for comments
I have the same question (0)