Sitecore Email Campaign can't find email type fields

265 Views Asked by At

I have an email field in a form. On submission, I am then trying to email the form values, but it seems that Sitecore cannot find the field element, even through I've used the built in Email Template editor to add the placeholders.

Exception: System.InvalidOperationException
Message: String variable is null or empty.
Source: Sitecore.Kernel
   at Sitecore.Diagnostics.Assert.IsNotNullOrEmpty(String value, String message)
   at Sitecore.Modules.EmailCampaign.Util.AssertNotNullOrEmpty(String var)
   at Sitecore.Modules.EmailCampaign.Layouts.GetUserFields.OnLoadComplete(EventArgs e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Anyone know a way around this?

1

There are 1 best solutions below

0
On BEST ANSWER

It turns out that the Sitecore was trying to replace a token with a field value that did not exist. The error is a little deceptive since I believe most programmers would have thrown a more detailed exception.