Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error when creating a new custom activity record

Posted on by 150

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

  • Daryl LaBar Profile Picture
    Daryl LaBar 500 Most Valuable Professional on at
    RE: Error when creating a new custom activity record

    Did you get this resolved?  I believe I'm getting the same error...

  • Leonardo Mizikami Profile Picture
    Leonardo Mizikami 150 on at
    RE: Error when creating a new custom activity record

    There is no plug-in registered on "new_teste" and I got more symptoms: When I try to import anything into the CRM, the progress bar don't move. I can't get the Event Log right now, but the error was in the Microsoft.CRM.WebServices. Did a google research but it didn't help.

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: Error when creating a new custom activity record

    From the trace log  it seem that Plugin giving error is trying to clone the data and is not getting the appropriate data. This plugin is registered on creates of “new_teste” entity.

    So please check the plugin registered on “new_teste” entity and is this entity related to your new custom activity entity.

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans