Console icon indicating copy to clipboard operation
Console copied to clipboard

Package creation with -recurse childitems

Open PunjabSoftSolution opened this issue 1 year ago • 1 comments

Expected Behavior Package size should remain same with -recurse keyword.

Please describe the expected behavior. When creating a package with Get-ChildItem -Path "master:/content/home", the package is created as expected. However, when using the -Recurse keyword, the package size doubles. Upon opening the package to investigate the difference, I observed that each folder item appears twice. Please investigate this issue. Thank you in advance.

Get-ChildItem -Path "master:/content/home" - This command works as expected.

Get-ChildItem -Path "master:/content/home" -Recurse - This command increases the package size to double. For example, if the package size is 1 MB with the top query, using this query results in a package size of 2 MB because it adds the same item twice in the folder.

Sitecore version 10.3 and SPE version 6.4.

PunjabSoftSolution avatar Mar 12 '24 09:03 PunjabSoftSolution

Can you provide a functioning script to reproduce the issue that works with the default home item? Perhaps a package with the test content too.

michaellwest avatar Mar 12 '24 15:03 michaellwest

Those cmdlets are a thin coat over Sitecore APIs. Closing as this seems like a problem with a clear workaround and a wrong usage of existing functionality rather than a bug + lack of reported response makes it unlikely that we will deal with it.

AdamNaj avatar Jul 25 '24 15:07 AdamNaj