Getting the following error on EXM log when submitting a form with
Send Email with Exm submit step using Sitecore FormsExtensions
sc10.1-4.0.2 on Sitecore
Exception: System.NullReferenceException Message: Object reference not set to an instance of an object. Source: Feature.FormsExtensions at Feature.FormsExtensions.SubmitActions.SendEmail.Tokens.MailTokenBuilder.BuildTokens(IDictionary`2 fieldTokens, FormSubmitContext formSubmitContext) at Feature.FormsExtensions.SubmitActions.SendEmail.SendEmailBase`1.BuildCustomTokens(T data, FormSubmitContext formSubmitContext) at Feature.FormsExtensions.SubmitActions.SendEmail.SendEmailExtended.BuildCustomTokens(SendEmailExtendedData data, FormSubmitContext formSubmitContext) at Feature.FormsExtensions.SubmitActions.SendEmail.SendEmailBase`1.Execute(T data, FormSubmitContext formSubmitContext)
User sees this on the front-end:
Things I have tried without resolve:
- Republish everything under
- republish the whole site
- Reinstalling the Sitecore FormsExtensions
The workaround has been to change the email message attached to this step, publish form. Come back and assign it the previous message and publish again. Form successfully submits.
I'm assuming the field tokens are null - what are field tokens? Any hints on what could cause this issue?