3

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?

5
  • 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

2 Answers 2

5

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}$" />
0

This solution doesn't work for me, I think this answer may be applicable to previous versions, I am using 10.2, there is a regex already provided but still the same error. enter image description here

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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