Error when overriding validators pipeline to create custom error textSitecore User Group April 2019 Meetup - Queen City, Manchester, NHSitecore 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

What is the most common color to indicate the input-field is disabled?

Spam email "via" my domain, but SPF record exists

Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact

Why do I get "Binary file matches" with grep -I?

Why is the sentence "Das ist eine Nase" correct?

What is required to make GPS signals available indoors?

Does the Idaho Potato Commission associate potato skins with healthy eating?

Why do I get negative height?

How exploitable/balanced is this homebrew spell: Spell Permanency?

What does the same-ish mean?

Notepad++ delete until colon for every line with replace all

My singleton can be called multiple times

When handwriting 黄 (huáng; yellow) is it incorrect to have a disconnected 草 (cǎo; grass) radical on top?

Should I tell management that I intend to leave due to bad software development practices?

How to detect integer overflow in C?

How to delete logs automatically after a certain time and restart the process that fills up the log file?

Did 'Cinema Songs' exist during Hiranyakshipu's time?

How to coordinate airplane tickets?

How obscure is the use of 令 in 令和?

How does a dynamic QR code work?

Connect points with lines QGIS

Calculate the Mean mean of two numbers

What steps are necessary to read a Modern SSD in Medieval Europe?

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?



Error when overriding validators pipeline to create custom error text



Sitecore User Group April 2019 Meetup - Queen City, Manchester, NHSitecore 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










2















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









share|improve this question


























    2















    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









    share|improve this question
























      2












      2








      2








      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









      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      Levi WallachLevi Wallach

      30016




      30016




















          1 Answer
          1






          active

          oldest

          votes


















          4














          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>





          share|improve this answer























          • 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
            1 hour ago











          • 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
            1 hour ago











          • Turned out the <pipelines> node also needed to be changed to <processors>.

            – Levi Wallach
            58 mins ago











          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
          );



          );













          draft saved

          draft discarded


















          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









          4














          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>





          share|improve this answer























          • 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
            1 hour ago











          • 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
            1 hour ago











          • Turned out the <pipelines> node also needed to be changed to <processors>.

            – Levi Wallach
            58 mins ago















          4














          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>





          share|improve this answer























          • 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
            1 hour ago











          • 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
            1 hour ago











          • Turned out the <pipelines> node also needed to be changed to <processors>.

            – Levi Wallach
            58 mins ago













          4












          4








          4







          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>





          share|improve this answer













          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>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 3 hours ago









          Marek MusielakMarek Musielak

          11.4k11136




          11.4k11136












          • 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
            1 hour ago











          • 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
            1 hour ago











          • Turned out the <pipelines> node also needed to be changed to <processors>.

            – Levi Wallach
            58 mins ago

















          • 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
            1 hour ago











          • 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
            1 hour ago











          • Turned out the <pipelines> node also needed to be changed to <processors>.

            – Levi Wallach
            58 mins ago
















          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
          1 hour ago





          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
          1 hour ago













          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
          1 hour ago





          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
          1 hour ago













          Turned out the <pipelines> node also needed to be changed to <processors>.

          – Levi Wallach
          58 mins ago





          Turned out the <pipelines> node also needed to be changed to <processors>.

          – Levi Wallach
          58 mins ago

















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Благоевград Съдържание География | История | Население | Политика | Икономика и инфрастуктура | Здравеопазване | Образование и наука | Култура и забавления | Забележителности | Личности | Литература | Външни препратки | Бележки | Навигация42°01′18.99″ с. ш. 23°05′51″ и. д. / 42.021944° с. ш. 23.0975° и. д.*БлагоевградразширитередактиранеОфициален уебсайт на община БлагоевградНовинарски портал на Благоевград – blagoevgrad.euСайтове за БлагоевградНационален статистически институтdariknews.bgГригоровичъ, Викторъ. „Очеркъ путешествія по Европейской Турціи“. Москва, 1877.Стрезов, Георги. Два санджака от Източна Македония. Периодично списание на Българското книжовно дружество в Средец, кн. XXXVII и XXXVIII, 1891, стр. 18 – 19.Македония. Етнография и статистикаГаджанов, Димитър Г. Мюсюлманското население в Новоосвободените земи, в: Научна експедиция в Македония и Поморавието 1916, Военноиздателски комплекс „Св. Георги Победоносец“, Университетско издателство „Св. Климент Охридски“, София, 1993, стр. 244.паметник на незнайния четник&cd=18&hl=en&ct=clnk&client=firefox-a „История на днешен Благоевград“, взето от www.museumblg.com на 16 март 2010 г.„Справка за населението на град Благоевград, община Благоевград, област Благоевград, НСИ“„The population of all towns and villages in Blagoevgrad Province with 50 inhabitants or more according to census results and latest official estimates“„Ethnic composition, all places: 2011 census“История на Неврокопска епархия.Национален статистически институтМюсюлманско изповедание. Главно мюфтийствоНационален публичен регистър на храмовете в БългарияМюсюлманско изповедание. Главно мюфтийствоwww.dnes.bg Джамията в Благоевград не била паленаwww.sesc-bg.orgСписък на побратимени градовеТехническо побратимяванеГУМ грейва в цветовете на нощен Лас Вегас под името „Largo“, „МОЛ Благоевград“..., в. „Струма“grabo.bgwww.cinemaxbg.comррр4238731-067cad53a-0546-417b-a3d3-51e49b1d2232147736077147736077

          What is the best defense strategy for Survival in Grand Theft Auto Online?What is JP used for in Grand Theft Auto Online?How do I setup a Crew HQ in Grand Theft Auto Online?How does stealth work in Grand Theft Auto Online?Is it possible to own more than 10 cars in Grand Theft Auto online?Where to find truck/trailers in Grand Theft Auto OnlineWhat are some of the best missions to do on Grand Theft Auto 5 onlineFastest Car in Grand Theft Auto V PCHow to setup a Crew vs Crew online session in Grand Theft Auto Online?Grand theft auto 5 crossplayingRestart Grand Theft Auto V Online?

          How does Billy Russo acquire his 'Jigsaw' mask? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why does Bane wear the mask?Why does Kylo Ren wear a mask?Why did Captain America remove his mask while fighting Batroc the Leaper?How did the OA acquire her wisdom?Is Billy Breckenridge gay?How does Adrian Toomes hide his earnings from the IRS?What is the state of affairs on Nootka Sound by the end of season 1?How did Tia Dalma acquire Captain Barbossa's body?How is one “Deemed Worthy”, to acquire the Greatsword “Dawn”?How did Karen acquire the handgun?