Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

InvalidPluginExecutionException when sending out VoC survey email invitations

Posted on by

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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans