Sitecore 8.2.0 Unicorn 3.3 Items sync Issue [Error: Cannot perform initial serialization]

3.7k Views Asked by At

I have followed steps mentioned here, but unable to sync items to local sitecore instance

Sitecore Unicorn Sync Issue

Gulp Config:

var instanceRoot = "C:\\inetpub\\wwwroot\\SC82";

websiteRoot= instanceRoot + "\\Website";

habitat Dev settings:

<sc.variable name="sourceFolder" value="C:\Users\Habitat-master\src" />
<sc.variable name="rootHostName" value="SC82" />

Publishing Targets:

<publishUrl>http://SC82</publishUrl>

Predicate Config:

<predicate type="Unicorn.Predicates.SerializationPresetPredicate, Unicorn" singleInstance="true"> <include database="master" path="/sitecore/content"> <exclude path="/sitecore/content/" /> </include> <include name="Home" database="master" path="/sitecore/layout/Controllers/Home" /> <include name="Layout.Layouts" database="master" path="/sitecore/layout/Layouts/" /> <include name="Layout.Models" database="master" path="/sitecore/layout/Models/" /> <include name="Layout.PlaceholderSettings" database="master" path="/sitecore/layout/Placeholder Settings/" /> <include name="Layout.Renderings.Project" database="master" path="/sitecore/layout/Renderings/" /> <include name="System.Dictionary.Project" database="master" path="/sitecore/system/Dictionary/" /> <include name="System.Languages" database="master" path="/sitecore/system/Languages" /> <include name="System.Workflows" database="master" path="/sitecore/system/Workflows" /> <include name="Templates.Project" database="master" path="/sitecore/templates/" /> <include name="System.HtmlEditorProfiles" database="core" path="/sitecore/system/Settings/Html Editor Profiles/" /> </predicate>

Error: Cannot perform initial serialization because the predicate configuration is including item paths which do not exist in the database.

Can someone help on this issue?. Thanks in Advance

2

There are 2 best solutions below

0
On

Manully run following unicorn sync url to see what's error you'll get. {Your local host url}/unicorn.aspx?verb=Sync&configuration=&skipTransparentConfigs=0

Also, make sure install the "Web Forms for Marketers 8.2" because Habitat uses it.

0
On

Latest code and in detailed steps are updated here :)

worked perfectly