Hi,
This looks more like a bug to me but if anyone has any experience with this please shed some light. I am querying some workflows in my plugin using the following code:
QueryExpression query = new QueryExpression(AsyncOperation.EntityLogicalName);
query.Criteria.AddCondition(new ConditionExpression("statecode", ConditionOperator.NotEqual, AsyncOperationState.Completed));
query.Criteria.AddCondition("regardingobjectid", ConditionOperator.Equal, eventId);
query.Criteria.AddCondition("operationtype", ConditionOperator.Equal, 10); // Workflows only
EntityCollection workflows = service.RetrieveMultiple(query);
When this code executes without isolation there is no problem, but if it executes within sandbox I get a SerializtionException: System.Runtime.Serialization.SerializationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators
or support: #01E45E75
Very weird, I am deploying to CRM Online so I ust use sandbox...
Gonzalo | gonzaloruizcrm.blogspot.com