I was recently installing the packages from one of the QA environment to my local Sitecore instance, "Media library package" to be precise, And it started giving me this below error
One or more exceptions occurred while processing the subscribers to the 'item:creating' eventLooking at the sitecore logs, it gave me more info on the context and the actual inner exception was following
Solution: 'Name' should consist only of letters, digits, dashes or underscore
Now it was evident that some of my file names were violating the naming rule, I could see in the log just before exception from where the installer stopped creating items, and that file name had round braces "(" and ")" at the end of it, with my surprise I was able to create the item with those name in the content tree, but below was the solution for it,
Solution
I am using SC 9.0.1 and in that Go to Sitecore.Marketing.config file residing in
"App_Config\Sitecore\Marketing.Operations.xMgmt" folder and find two entries as below
<event name="item:saving"> <handler type="Sitecore.Marketing.xMgmt.Definitions.ItemEventHandler, Sitecore.Marketing.xMgmt"
method="OnItemSaving"/> </event> <event name="item:creating"> <handler type="Sitecore.Marketing.xMgmt.Definitions.ItemEventHandler, Sitecore.Marketing.xMgmt"
method="OnItemCreating"/> </event>
Comment them out and try to import the package again, this time it will work, Once you are done restoring the package, You can revert that file back by uncommenting those entries.
Hope it helps !!!
thanks that did the trick! SC 9.1.1
ReplyDeleteGlad that it helped !!! :)
DeleteGlad that it helped !!! :)
ReplyDeleteHI Daivag, just wanted to know it's impact if we kept both the lines commented.
ReplyDeleteI tried the process but after that too facing the same issue
ReplyDeleteI tried the process but after that too facing the same issue
ReplyDeleteDid you check logs?
ReplyDeleteAwesome ! It's Working 100 % fine. Thank you so much @Daivagna
ReplyDeleteThanks and that i have a tremendous provide: Whole House Renovation Cost Calculator 1960 bungalow exterior makeover
ReplyDelete