4

I have a .update package which is moving children items from one parent into another. When I install it using /sitecore/admin/UpdateInstallationWizard.aspx?page=1, the chilren items are not moved. They stay in their original path.

The installation log gives me this:

log says WARN:Item path: '[s]/sitecore/content/Sites/Site/Configuration/TO BE DELETED[/s]'
Item ID: '[s]{E5196F6B-C43C-47F3-8216-760784F3DAF0}[/s]'
Add item operation will be skipped.

Here is the configuration of the parent item that was suppose to get the children items moved into.

enter image description here

Here is the package unzipped

enter image description here

4

Found the issue. When moving Sitecore items using .update packages you need to first delete them and then add them to the target path.

The problem with my .update package is that it only contains items addition. That’s why the installation process is never moving those items.

Here is a screenshot of how my.update package looks like:

enter image description here

Here is a screenshot of how a .update package which move items should look like:

enter image description here

Take for instance the following example of an item being moved:

PACKAGE_PATH\deleteditems\core\sitecore\client\business component library\version 1\layouts\renderings\containers\loadondemandpanel\loadondemandpanel parameters

PACKAGE_PATH\addeditems\core\sitecore\client\business component library\version 1\layouts\renderings\containers\loadondemandpanel\loadondemandpanel parameters

As I am using TDS to generate the .update packages, I refered to the following article on how to setup deletion TDS How-To: Delete items from the target Sitecore instance using TDS update package.

I can’t emphasize enough on how careful you should be when using this configuration as you might end up with production data being deleted.

In this case, TDS won't add any deleteditems folder to the .update package, but - when deployed - will start removing every item that is not present in the project, with the exception of items that don’t have the Sync All children setting for their parent.

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.