Error when overriding validators pipeline to create custom error text Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Sitecore Field Validator Change to Custom MessageERROR Could not run the 'getMediaStream' pipeline for 'x' when loading imagesRun Pipeline Batch button disabledAddFromTemplate Pipeline Processor ExplanationCan we use Sitecore pipeline engine when implement a “Custom Form” on Sitecore platform?Could not create object from service provider - Registering service using Dependency InjectionStop executing remaining processor of a pipelineHow to avoid logging an error when aborting a pipelineIs there a way to debug an initialize pipeline processorDisable a pipeline during package/update installation wizardCustom Dependency Injection for Sitecore pipeline processor with Ninject
How does TikZ render an arc?
Releasing Patch File for BSD3 Licensed Project
Where and when has Thucydides been studied?
How to evaluate this function?
Was the pager message from Nick Fury to Captain Marvel unnecessary?
How does the body cool itself in a stillsuit?
Short story about astronauts fertilizing soil with their own bodies
Trying to understand entropy as a novice in thermodynamics
First paper to introduce the "principal-agent problem"
Does the transliteration of 'Dravidian' exist in Hindu scripture? Does 'Dravida' refer to a Geographical area or an ethnic group?
As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?
Is the time—manner—place ordering of adverbials an oversimplification?
Why is a lens darker than other ones when applying the same settings?
Why weren't discrete x86 CPUs ever used in game hardware?
Centre cell contents vertically
What is a more techy Technical Writer job title that isn't cutesy or confusing?
The test team as an enemy of development? And how can this be avoided?
Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?
Pointing to problems without suggesting solutions
.bashrc alias for a command with fixed second parameter
Understanding piped command in Gnu/Linux
Did any compiler fully use 80-bit floating point?
What is the proper term for etching or digging of wall to hide conduit of cables
How much damage would a cupful of neutron star matter do to the Earth?
Error when overriding validators pipeline to create custom error text
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Sitecore Field Validator Change to Custom MessageERROR Could not run the 'getMediaStream' pipeline for 'x' when loading imagesRun Pipeline Batch button disabledAddFromTemplate Pipeline Processor ExplanationCan we use Sitecore pipeline engine when implement a “Custom Form” on Sitecore platform?Could not create object from service provider - Registering service using Dependency InjectionStop executing remaining processor of a pipelineHow to avoid logging an error when aborting a pipelineIs there a way to debug an initialize pipeline processorDisable a pipeline during package/update installation wizardCustom Dependency Injection for Sitecore pipeline processor with Ninject
I've been trying to duplicate the solution proposed here and I'm running up against an error that I can't seem to debug. My config patch is here:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<httpRequestBegin>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</httpRequestBegin>
</pipelines>
</sitecore>
</configuration>
And I've basically just copied and pasted the code from Sitecore.Piplelines.Save.Validators from the Sitecore.kernell.dll:
using Sitecore.Collections;
using Sitecore.Data.Validators;
using Sitecore.Diagnostics;
using Sitecore.Globalization;
using Sitecore.Pipelines.Save;
using Sitecore.Web;
using Sitecore.Web.UI.Sheer;
using System;
namespace DVD.Utility
public class DVDItemSavingProcessor
public void Process(SaveArgs args)
Assert.ArgumentNotNull(args, "args");
this.ProcessInternal(args);
/// <summary>
/// Processes the internal.
/// </summary>
/// <param name="args">
/// The arguments.
/// </param>
protected void ProcessInternal(ClientPipelineArgs args)
Assert.ArgumentNotNull(args, "args");
if (args.IsPostBack)
if (args.Result == "no")
args.AbortPipeline();
args.IsPostBack = false;
return;
string formValue = WebUtil.GetFormValue("scValidatorsKey");
if (string.IsNullOrEmpty(formValue))
return;
ValidatorCollection validators = ValidatorManager.GetValidators(ValidatorsMode.ValidatorBar, formValue);
ValidatorOptions options = new ValidatorOptions(true);
ValidatorManager.Validate(validators, options);
Pair<ValidatorResult, BaseValidator> strongestResult = ValidatorManager.GetStrongestResult(validators, true, true);
ValidatorResult part = strongestResult.Part1;
BaseValidator part2 = strongestResult.Part2;
if (part2 != null && part2.IsEvaluating)
SheerResponse.Alert("The fields in this item have not been validated.nnWait until validation has been completed and then save your changes.", new string[0]);
args.AbortPipeline();
return;
if (part == ValidatorResult.CriticalError)
string text = Translate.Text("Some of the fields in this item contain critical errors.nnAre you sure you want to save this item?");
if (Sitecore.MainUtil.GetBool(args.CustomData["showvalidationdetails"], false) && part2 != null)
text += ValidatorManager.GetValidationErrorDetails(part2);
SheerResponse.Confirm(text);
args.WaitForPostBack();
return;
if (part == ValidatorResult.FatalError)
string text2 = Translate.Text("Some of the fields in this item contain fatal errors.nnYou must resolve these errors before you can save this item.");
if (Sitecore.MainUtil.GetBool(args.CustomData["showvalidationdetails"], false) && part2 != null)
text2 += ValidatorManager.GetValidationErrorDetails(part2);
SheerResponse.Alert(text2, new string[0]);
SheerResponse.SetReturnValue("failed");
args.AbortPipeline();
return;
The error that I'm getting is:
[InvalidOperationException: Could not find method: Process. Pipeline: /sitecore[database="SqlServer" xmlns:patch="http://www.sitecore.net/xmlconfig/"]/pipelines/httpRequestBegin/processor[type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:source="Tricare.CustomValidator.config"]]
Sitecore.Pipelines.CoreProcessor.GetMethodInfo(ProcessorObject obj, Object[] parameters) +170
Sitecore.Pipelines.CoreProcessor.GetMethod(Object[] parameters) +152
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +455
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
Sitecore.Nexus.Web.HttpModule.(Object , EventArgs ) +551
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
pipelines
add a comment |
I've been trying to duplicate the solution proposed here and I'm running up against an error that I can't seem to debug. My config patch is here:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<httpRequestBegin>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</httpRequestBegin>
</pipelines>
</sitecore>
</configuration>
And I've basically just copied and pasted the code from Sitecore.Piplelines.Save.Validators from the Sitecore.kernell.dll:
using Sitecore.Collections;
using Sitecore.Data.Validators;
using Sitecore.Diagnostics;
using Sitecore.Globalization;
using Sitecore.Pipelines.Save;
using Sitecore.Web;
using Sitecore.Web.UI.Sheer;
using System;
namespace DVD.Utility
public class DVDItemSavingProcessor
public void Process(SaveArgs args)
Assert.ArgumentNotNull(args, "args");
this.ProcessInternal(args);
/// <summary>
/// Processes the internal.
/// </summary>
/// <param name="args">
/// The arguments.
/// </param>
protected void ProcessInternal(ClientPipelineArgs args)
Assert.ArgumentNotNull(args, "args");
if (args.IsPostBack)
if (args.Result == "no")
args.AbortPipeline();
args.IsPostBack = false;
return;
string formValue = WebUtil.GetFormValue("scValidatorsKey");
if (string.IsNullOrEmpty(formValue))
return;
ValidatorCollection validators = ValidatorManager.GetValidators(ValidatorsMode.ValidatorBar, formValue);
ValidatorOptions options = new ValidatorOptions(true);
ValidatorManager.Validate(validators, options);
Pair<ValidatorResult, BaseValidator> strongestResult = ValidatorManager.GetStrongestResult(validators, true, true);
ValidatorResult part = strongestResult.Part1;
BaseValidator part2 = strongestResult.Part2;
if (part2 != null && part2.IsEvaluating)
SheerResponse.Alert("The fields in this item have not been validated.nnWait until validation has been completed and then save your changes.", new string[0]);
args.AbortPipeline();
return;
if (part == ValidatorResult.CriticalError)
string text = Translate.Text("Some of the fields in this item contain critical errors.nnAre you sure you want to save this item?");
if (Sitecore.MainUtil.GetBool(args.CustomData["showvalidationdetails"], false) && part2 != null)
text += ValidatorManager.GetValidationErrorDetails(part2);
SheerResponse.Confirm(text);
args.WaitForPostBack();
return;
if (part == ValidatorResult.FatalError)
string text2 = Translate.Text("Some of the fields in this item contain fatal errors.nnYou must resolve these errors before you can save this item.");
if (Sitecore.MainUtil.GetBool(args.CustomData["showvalidationdetails"], false) && part2 != null)
text2 += ValidatorManager.GetValidationErrorDetails(part2);
SheerResponse.Alert(text2, new string[0]);
SheerResponse.SetReturnValue("failed");
args.AbortPipeline();
return;
The error that I'm getting is:
[InvalidOperationException: Could not find method: Process. Pipeline: /sitecore[database="SqlServer" xmlns:patch="http://www.sitecore.net/xmlconfig/"]/pipelines/httpRequestBegin/processor[type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:source="Tricare.CustomValidator.config"]]
Sitecore.Pipelines.CoreProcessor.GetMethodInfo(ProcessorObject obj, Object[] parameters) +170
Sitecore.Pipelines.CoreProcessor.GetMethod(Object[] parameters) +152
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +455
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
Sitecore.Nexus.Web.HttpModule.(Object , EventArgs ) +551
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
pipelines
add a comment |
I've been trying to duplicate the solution proposed here and I'm running up against an error that I can't seem to debug. My config patch is here:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<httpRequestBegin>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</httpRequestBegin>
</pipelines>
</sitecore>
</configuration>
And I've basically just copied and pasted the code from Sitecore.Piplelines.Save.Validators from the Sitecore.kernell.dll:
using Sitecore.Collections;
using Sitecore.Data.Validators;
using Sitecore.Diagnostics;
using Sitecore.Globalization;
using Sitecore.Pipelines.Save;
using Sitecore.Web;
using Sitecore.Web.UI.Sheer;
using System;
namespace DVD.Utility
public class DVDItemSavingProcessor
public void Process(SaveArgs args)
Assert.ArgumentNotNull(args, "args");
this.ProcessInternal(args);
/// <summary>
/// Processes the internal.
/// </summary>
/// <param name="args">
/// The arguments.
/// </param>
protected void ProcessInternal(ClientPipelineArgs args)
Assert.ArgumentNotNull(args, "args");
if (args.IsPostBack)
if (args.Result == "no")
args.AbortPipeline();
args.IsPostBack = false;
return;
string formValue = WebUtil.GetFormValue("scValidatorsKey");
if (string.IsNullOrEmpty(formValue))
return;
ValidatorCollection validators = ValidatorManager.GetValidators(ValidatorsMode.ValidatorBar, formValue);
ValidatorOptions options = new ValidatorOptions(true);
ValidatorManager.Validate(validators, options);
Pair<ValidatorResult, BaseValidator> strongestResult = ValidatorManager.GetStrongestResult(validators, true, true);
ValidatorResult part = strongestResult.Part1;
BaseValidator part2 = strongestResult.Part2;
if (part2 != null && part2.IsEvaluating)
SheerResponse.Alert("The fields in this item have not been validated.nnWait until validation has been completed and then save your changes.", new string[0]);
args.AbortPipeline();
return;
if (part == ValidatorResult.CriticalError)
string text = Translate.Text("Some of the fields in this item contain critical errors.nnAre you sure you want to save this item?");
if (Sitecore.MainUtil.GetBool(args.CustomData["showvalidationdetails"], false) && part2 != null)
text += ValidatorManager.GetValidationErrorDetails(part2);
SheerResponse.Confirm(text);
args.WaitForPostBack();
return;
if (part == ValidatorResult.FatalError)
string text2 = Translate.Text("Some of the fields in this item contain fatal errors.nnYou must resolve these errors before you can save this item.");
if (Sitecore.MainUtil.GetBool(args.CustomData["showvalidationdetails"], false) && part2 != null)
text2 += ValidatorManager.GetValidationErrorDetails(part2);
SheerResponse.Alert(text2, new string[0]);
SheerResponse.SetReturnValue("failed");
args.AbortPipeline();
return;
The error that I'm getting is:
[InvalidOperationException: Could not find method: Process. Pipeline: /sitecore[database="SqlServer" xmlns:patch="http://www.sitecore.net/xmlconfig/"]/pipelines/httpRequestBegin/processor[type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:source="Tricare.CustomValidator.config"]]
Sitecore.Pipelines.CoreProcessor.GetMethodInfo(ProcessorObject obj, Object[] parameters) +170
Sitecore.Pipelines.CoreProcessor.GetMethod(Object[] parameters) +152
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +455
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
Sitecore.Nexus.Web.HttpModule.(Object , EventArgs ) +551
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
pipelines
I've been trying to duplicate the solution proposed here and I'm running up against an error that I can't seem to debug. My config patch is here:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<httpRequestBegin>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</httpRequestBegin>
</pipelines>
</sitecore>
</configuration>
And I've basically just copied and pasted the code from Sitecore.Piplelines.Save.Validators from the Sitecore.kernell.dll:
using Sitecore.Collections;
using Sitecore.Data.Validators;
using Sitecore.Diagnostics;
using Sitecore.Globalization;
using Sitecore.Pipelines.Save;
using Sitecore.Web;
using Sitecore.Web.UI.Sheer;
using System;
namespace DVD.Utility
public class DVDItemSavingProcessor
public void Process(SaveArgs args)
Assert.ArgumentNotNull(args, "args");
this.ProcessInternal(args);
/// <summary>
/// Processes the internal.
/// </summary>
/// <param name="args">
/// The arguments.
/// </param>
protected void ProcessInternal(ClientPipelineArgs args)
Assert.ArgumentNotNull(args, "args");
if (args.IsPostBack)
if (args.Result == "no")
args.AbortPipeline();
args.IsPostBack = false;
return;
string formValue = WebUtil.GetFormValue("scValidatorsKey");
if (string.IsNullOrEmpty(formValue))
return;
ValidatorCollection validators = ValidatorManager.GetValidators(ValidatorsMode.ValidatorBar, formValue);
ValidatorOptions options = new ValidatorOptions(true);
ValidatorManager.Validate(validators, options);
Pair<ValidatorResult, BaseValidator> strongestResult = ValidatorManager.GetStrongestResult(validators, true, true);
ValidatorResult part = strongestResult.Part1;
BaseValidator part2 = strongestResult.Part2;
if (part2 != null && part2.IsEvaluating)
SheerResponse.Alert("The fields in this item have not been validated.nnWait until validation has been completed and then save your changes.", new string[0]);
args.AbortPipeline();
return;
if (part == ValidatorResult.CriticalError)
string text = Translate.Text("Some of the fields in this item contain critical errors.nnAre you sure you want to save this item?");
if (Sitecore.MainUtil.GetBool(args.CustomData["showvalidationdetails"], false) && part2 != null)
text += ValidatorManager.GetValidationErrorDetails(part2);
SheerResponse.Confirm(text);
args.WaitForPostBack();
return;
if (part == ValidatorResult.FatalError)
string text2 = Translate.Text("Some of the fields in this item contain fatal errors.nnYou must resolve these errors before you can save this item.");
if (Sitecore.MainUtil.GetBool(args.CustomData["showvalidationdetails"], false) && part2 != null)
text2 += ValidatorManager.GetValidationErrorDetails(part2);
SheerResponse.Alert(text2, new string[0]);
SheerResponse.SetReturnValue("failed");
args.AbortPipeline();
return;
The error that I'm getting is:
[InvalidOperationException: Could not find method: Process. Pipeline: /sitecore[database="SqlServer" xmlns:patch="http://www.sitecore.net/xmlconfig/"]/pipelines/httpRequestBegin/processor[type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:source="Tricare.CustomValidator.config"]]
Sitecore.Pipelines.CoreProcessor.GetMethodInfo(ProcessorObject obj, Object[] parameters) +170
Sitecore.Pipelines.CoreProcessor.GetMethod(Object[] parameters) +152
Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +455
Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22
Sitecore.Nexus.Web.HttpModule.(Object , EventArgs ) +551
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
pipelines
pipelines
asked Apr 2 at 13:30
Levi WallachLevi Wallach
32216
32216
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You added your processor to wrong pipeline.
It should be:
saveUI
and you added it to
httpRequestBegin
Change your config to:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<saveUI>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</saveUI>
</pipelines>
</sitecore>
</configuration>
Thank you, this removed the error. Unfortunately when I now change the "Some of the fields" text in the message for either CriticalError or FatalError, it doesn't seem to change the text in the modal dialog that comes up.
– Levi Wallach
Apr 2 at 14:59
That is a separate, e.g. new question Levi. Please take some time to familiarise yourself with how this site functions. If the answer given solves your original question, please mark it as such and we can all move on :-)
– Mark Cassidy♦
Apr 2 at 15:05
Turned out the <pipelines> node also needed to be changed to <processors>.
– Levi Wallach
Apr 2 at 15:42
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "664"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17860%2ferror-when-overriding-validators-pipeline-to-create-custom-error-text%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You added your processor to wrong pipeline.
It should be:
saveUI
and you added it to
httpRequestBegin
Change your config to:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<saveUI>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</saveUI>
</pipelines>
</sitecore>
</configuration>
Thank you, this removed the error. Unfortunately when I now change the "Some of the fields" text in the message for either CriticalError or FatalError, it doesn't seem to change the text in the modal dialog that comes up.
– Levi Wallach
Apr 2 at 14:59
That is a separate, e.g. new question Levi. Please take some time to familiarise yourself with how this site functions. If the answer given solves your original question, please mark it as such and we can all move on :-)
– Mark Cassidy♦
Apr 2 at 15:05
Turned out the <pipelines> node also needed to be changed to <processors>.
– Levi Wallach
Apr 2 at 15:42
add a comment |
You added your processor to wrong pipeline.
It should be:
saveUI
and you added it to
httpRequestBegin
Change your config to:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<saveUI>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</saveUI>
</pipelines>
</sitecore>
</configuration>
Thank you, this removed the error. Unfortunately when I now change the "Some of the fields" text in the message for either CriticalError or FatalError, it doesn't seem to change the text in the modal dialog that comes up.
– Levi Wallach
Apr 2 at 14:59
That is a separate, e.g. new question Levi. Please take some time to familiarise yourself with how this site functions. If the answer given solves your original question, please mark it as such and we can all move on :-)
– Mark Cassidy♦
Apr 2 at 15:05
Turned out the <pipelines> node also needed to be changed to <processors>.
– Levi Wallach
Apr 2 at 15:42
add a comment |
You added your processor to wrong pipeline.
It should be:
saveUI
and you added it to
httpRequestBegin
Change your config to:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<saveUI>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</saveUI>
</pipelines>
</sitecore>
</configuration>
You added your processor to wrong pipeline.
It should be:
saveUI
and you added it to
httpRequestBegin
Change your config to:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<saveUI>
<processor type="DVD.Utility.DVDItemSavingProcessor, DVD" patch:instead="processor[@type='Sitecore.Pipelines.Save.Validators, Sitecore.Kernel']" />
</saveUI>
</pipelines>
</sitecore>
</configuration>
answered Apr 2 at 13:32
Marek MusielakMarek Musielak
11.8k11136
11.8k11136
Thank you, this removed the error. Unfortunately when I now change the "Some of the fields" text in the message for either CriticalError or FatalError, it doesn't seem to change the text in the modal dialog that comes up.
– Levi Wallach
Apr 2 at 14:59
That is a separate, e.g. new question Levi. Please take some time to familiarise yourself with how this site functions. If the answer given solves your original question, please mark it as such and we can all move on :-)
– Mark Cassidy♦
Apr 2 at 15:05
Turned out the <pipelines> node also needed to be changed to <processors>.
– Levi Wallach
Apr 2 at 15:42
add a comment |
Thank you, this removed the error. Unfortunately when I now change the "Some of the fields" text in the message for either CriticalError or FatalError, it doesn't seem to change the text in the modal dialog that comes up.
– Levi Wallach
Apr 2 at 14:59
That is a separate, e.g. new question Levi. Please take some time to familiarise yourself with how this site functions. If the answer given solves your original question, please mark it as such and we can all move on :-)
– Mark Cassidy♦
Apr 2 at 15:05
Turned out the <pipelines> node also needed to be changed to <processors>.
– Levi Wallach
Apr 2 at 15:42
Thank you, this removed the error. Unfortunately when I now change the "Some of the fields" text in the message for either CriticalError or FatalError, it doesn't seem to change the text in the modal dialog that comes up.
– Levi Wallach
Apr 2 at 14:59
Thank you, this removed the error. Unfortunately when I now change the "Some of the fields" text in the message for either CriticalError or FatalError, it doesn't seem to change the text in the modal dialog that comes up.
– Levi Wallach
Apr 2 at 14:59
That is a separate, e.g. new question Levi. Please take some time to familiarise yourself with how this site functions. If the answer given solves your original question, please mark it as such and we can all move on :-)
– Mark Cassidy♦
Apr 2 at 15:05
That is a separate, e.g. new question Levi. Please take some time to familiarise yourself with how this site functions. If the answer given solves your original question, please mark it as such and we can all move on :-)
– Mark Cassidy♦
Apr 2 at 15:05
Turned out the <pipelines> node also needed to be changed to <processors>.
– Levi Wallach
Apr 2 at 15:42
Turned out the <pipelines> node also needed to be changed to <processors>.
– Levi Wallach
Apr 2 at 15:42
add a comment |
Thanks for contributing an answer to Sitecore Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17860%2ferror-when-overriding-validators-pipeline-to-create-custom-error-text%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown