4

Getting the error below in the CMS when trying to insert items into content tree or when re-naming existing items

enter image description here

Exception: System.ArgumentOutOfRangeException
Message: Empty string is not allowed.
Parameter name: validation.
Actual value was .
Source: Sitecore.Kernel
   at Sitecore.Diagnostics.Error.AssertString(String argument, String name, Boolean allowEmpty)
   at Sitecore.Web.UI.Sheer.SheerResponse.Input(String text, String defaultValue, String validation, String validationText, Int32 maxLength)
   at Sitecore.Shell.Framework.Commands.AddMaster.Add(ClientPipelineArgs args)

Any chance you can help figure out what is going on?

6
  • Do you have popups blocked? looks like the dialog where you normally enter the name, gets blocked and therefore returns empty string. Mar 3, 2017 at 10:30
  • Can you check if the value of this setting is <setting name="ItemNameValidation" value="." /> ? Mar 3, 2017 at 10:38
  • 1
    can you change to this value : <setting name="ItemNameValidation" value="^[\w*\$][\w\s\-\$]*((\d{1,})){0,1}$" /> Mar 3, 2017 at 10:39
  • I have checked, the <setting name="ItemNameValidation" had somehow the value set to empty string. I have restored the regex and this has resolved the issue. Thanks
    – Julius A
    Mar 3, 2017 at 10:56
  • I change my comment into an answer. Mar 3, 2017 at 11:23

1 Answer 1

6

The problem of your issue is ItemNameValidation settings. Please change the value of this setting to the default one :

 <setting name="ItemNameValidation" value="^[\w*\$][\w\s\-\$]*((\d{1,})){0,1}$" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.