-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package installation fails: Sitecore.PowerShell.Extensions-5.1.zip #1140
Comments
Have you tested by restoring the values to the default settings? |
I have restored the values to default settings: setting name="InvalidItemNameChars" value="/:?"<>|[]" The installation error: "ERROR Installation failed: Sitecore.Exceptions.InvalidItemNameException: Et elementnavn skal passe til mønstret: ^[\w*$][\w\s-$]*((\d{1,})){0,1}$ (styres af indstillingen ItemNameValidation)" When I change ItemNameValidation to accept anything the next error will be: MaxItemNameLength (the item is 100+) I set MaxItemNameLength to 1000, and "An item name cannot start or end with a space" error will kick in - like in the initial post. |
Hi Decompiled sitecore and found: public static string GetItemNameError(string name) How do I get around this? |
I'll have a look at the newer versions of Sitecore to see if this issue exists. Thank you for reporting it. |
Ok, I found a solution: Opened Sitecore.PowerShell.Extensions-5.1.zip in 7-Zip and made changes inside the package. Removed traling blank from this node: Opened the xml file and removed traling blank in both references: |
I think that is the only item. Nice find. |
Hi Michael, Could you share me the link which has the updated/fixed powershell zip file |
Installing 6.1.1 would resolve the issue. |
Getting same error when trying to install SXA on Vanilla Sitecore 9.3 on local machine. Message: An item name cannot start or end with blanks. |
The solution can be found in the comments. |
Expected Behavior
Sitecore.PowerShell.Extensions-5.1.zip will install
Actual Behavior
"An item name cannot start or end with a space"
Node:
"items/core/sitecore/system/Dictionary/PowerShell/T/The data for the dialog is not available Either your server was restarted or the server cache was /{90A4B70F-D65F-477F-A3B0-CF580530DD68}/en/1/xml"
After "was" is a whitespace.
I have tried to set:
setting name="InvalidItemNameChars" value=""
setting name="ItemNameValidation" value="[\s\S]+"
setting name="MaxItemNameLength" value="1000"
Steps to Reproduce the Problem
Sitecore.NET 8.1 (rev. 151207)
Installed:
Sitecore.PowerShell.Extensions-5.0.zip
The text was updated successfully, but these errors were encountered: