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.
Sitecore Email Campaign can't find email type fields
-
03-06-2022 - |
Question
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?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow