Error When try to run Workflow

Apr 19, 2012 at 2:02 PM

Hi

I have followed the example here:-

http://xrm2011.wordpress.com/2011/12/12/crm-2011-views-and-local-data-groups-part-iv-filter-templates/

But when I try to run the workflow I am getting this error:-

Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type Microsoft.Xrm.Sdk.Entity. Data at the root level is invalid. Line 1, position 1. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()   at System.Xml.XmlReader.MoveToContent()   at System.Xml.XmlReader.IsStartElement(String localname, String ns)   at System.Runtime.Serialization.XmlObjectSerializer.IsRootElement(XmlReaderDelegator reader, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns)   at System.Runtime.Serialization.DataContractSerializer.InternalIsStartObject(XmlReaderDelegator reader)   at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)   --- End of inner exception stack trace ---   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)   at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlReader reader)   at Gemina.CRM2011.WF.LdgManager.AgCodeActivityBase.DeserializeEntity(String str)   at Gemina.CRM2011.WF.LdgManager.AgDeploySystemView.CreateEntity()   at Gemina.CRM2011.WF.LdgManager.AgDeploySystemView.ExecuteBody(CodeActivityContext executionContext)   at Gemina.CRM2011.WF.LdgManager.AgCodeActivityBase.Execute(CodeActivityContext executionContext)   at Gemina.CRM2011.WF.LdgManager.AgCodeActivityBase.Execute(CodeActivityContext executionContext)   at Gemina.CRM2011.WF.LdgManager.AgDeploySystemView.Execute(CodeActivityContext executionContext)   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)