问题描述
Hi Team,
我想使用PowerShell控制台反序列化sitecore项目,我尝试使用以下脚本
Hi Team,
I want to deserialize sitecore item using PowerShell Console, I tried using below script
PS:master:\>deserialize-item -path "C:\Users\naveen_s\Desktop\serialization\serialization\master\sitecore\system\Modules" -root "C:\Users\nav
een_s\Desktop\serialization\serialization\" -recurse
我有一个项目以及下面的子文件夹我还有一个项目。
所以,使用recurse我也尝试反序列化孩子的数据。
我在链接下面的链接 []
但是,我在sitecore的power shell控制台中执行上面的脚本后得到如下错误。
错误详情:
under modules path I have an Item as well as sub folder under that again I have an Item.
So, using recurse I try to deserialize the data for childs also.
I refereed below link http://www.cognifide.com/blogs/sitecore/serialization-and-deserialization-with-sitecore-powershell-extensions/#.VgQMncuqqko[^]
but, I'm getting error like below after execute the above script in power shell console in sitecore.
Error details:
writeErrorStream : True
Exception : System.Exception: path is not under the root
at Sitecore.Data.Serialization.Manager.LoadTree(String path, LoadOptions options)
at Cognifide.PowerShell.Commandlets.Serialization.ImportItemCommand.Deserialize(String path)
at Cognifide.PowerShell.Commandlets.Serialization.ImportItemCommand.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
TargetObject :
CategoryInfo : NotSpecified: (:) [Import-Item], Exception
FullyQualifiedErrorId : System.Exception,Cognifide.PowerShell.Commandlets.Serialization.ImportItemCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails :
如果有任何人拥有关于这个问题的想法,请分享你的想法..
If any one having Idea about the issue, please share your thoughts..
推荐答案
这篇关于如何使用sitecore中的Powershell控制台反序列化sitecore项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!