Hello guys.
I'm getting a unexpected exception when I try to create a record in a fresh new custom activity entity. Here is the log from event viewer:
The Web Service plug-in failed in OrganizationId: b05fbd8f-051f-4c1b-86e6-afe4127d3120; SdkMessageProcessingStepId: 88002380-e1ee-e611-bf3e-00155d640515; EntityName: new_teste; Stage: 30; MessageName: Create; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Entities.CommunicationActivity.GetSubCollections()
at Microsoft.Crm.BusinessEntities.BusinessEntity.CloneWithoutRelatedEntities(CloneOptions option)
at Microsoft.Crm.BusinessEntities.BusinessEntity.Clone(CloneOptions option)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context)
at Microsoft.Crm.ObjectModel.GenericActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
at Microsoft.Crm.ObjectModel.CommunicationActivityServiceBase.Create(IBusinessEntity entityInterface, ExecutionContext context)
I'm using CRM 2011 version 5.0.9690.4376 with report and sql in the same server. This database was restored a few days ago and the old custom activity entity is working properly. There is no custom plug-in running to this new entity and when I export a solution to another instance in another server I can create the record. Any ideas?
*This post is locked for comments