Hello,
When resolving a case, a workflow is triggered to send out a survey invitation to the contact connected to the case. This is tested in the sandbox environment and works fine but in the production environment an InvalidPluginExecutionException is thrown. The complete message seen below. I have been searching for empty fields (in regards to the NullReferenceException) but cannot find anything. The "regarding" is the case itself.
Any ideas what is causing this?
Kind regards
Zoë
Plugin Trace:
[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
[SendEmailStep3: Send email survey invitation]
[Microsoft.Crm.Surveys.Plugins.Merged: Microsoft.Crm.Surveys.Plugins.EmailInvitePlugin]
[139db522-b7c6-e111-a6b5-00155d230e08: Microsoft.Crm.Surveys.Plugins.EmailInvitePlugin: Create of email]
1
d388f803-09a0-e611-80e7-c4346bad5038
Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Surveys.Plugins.EmailInvitePlugin.CopyRegardingObject(Entity changedEntity, Entity invitation, VocPluginContext vocPluginContext)
at Microsoft.Crm.Surveys.Plugins.EmailInvitePlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)
Error Message:
Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Surveys.Plugins.EmailInvitePlugin.CopyRegardingObject(Entity changedEntity, Entity invitation, VocPluginContext vocPluginContext)
at Microsoft.Crm.Surveys.Plugins.EmailInvitePlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)
*This post is locked for comments