Hot answers tagged

43 votes
Accepted

What are the differences between TDS Classic and Unicorn?

The two tools have different feature sets, and implementations. I've tried to represent both out-of-the-box feature sets here briefly, but as fairly as possible. SIMILAR FUNCTIONALITY The similar ...
Sean Holmesby's user avatar
27 votes

What are the differences between TDS Classic and Unicorn?

Sean's answer is a good general overview of the differences between Unicorn and TDS Classic. This answer is here mostly to expand on a few of the serialization-based items not entirely covered. The ...
Kam Figy's user avatar
  • 4,133
18 votes
Accepted

Unicorn Serialized Files to Source Control?

This is an alternative method to @Kasaku's answer - it effectively gives the same result but can be a little more flexible, especially if you are following Helix guidelines. Instead of patching the ...
Richard Seal's user avatar
  • 20.4k
14 votes
Accepted

Handle Unicorn Deploy Once in a Production Environment

Yep. Using the NewItemsOnly evaluator. Add this under your <configuration> element. <evaluator type="Unicorn.Evaluators.NewItemOnlyEvaluator, Unicorn" singleInstance="true"/> You can ...
Mark Cassidy's user avatar
  • 25.1k
12 votes

Adding a patch config file ONLY to my production server

You can add role on your configuration into your patch config. For example I created a patch config for setting up site definition for prod environment. <site name="website1" env:require=...
Rishiraj Shekhawat's user avatar
11 votes
Accepted

Bad IL format in Unicorn

Unicorn 3.2 is built against .NET 4.5, and Sitecore 8.2 is built against .NET 4.5.2. There are some funny edge cases where the earlier framework assembly calling the later framework assembly breaks - ...
Kam Figy's user avatar
  • 4,133
11 votes
Accepted

Unable to cast object of type 'System.String' to type 'Unicorn.ControlPanel.Security.IUnicornAuthenticationProvider' Using automated Tool API

This is caused by having the Unicorn.SharedSecret.config loading prior to Unicorn.UI.config (which prevents the type definition on the auth provider from loading correctly due to Sitecore config ...
Kam Figy's user avatar
  • 4,133
11 votes
Accepted

Is it possible to reserialize a single item with Unicorn?

Yes it's totally possible. When an item is controlled by Unicorn, you can use the Developer tab controls in the Sitecore ribbon to do partial syncing or partial reserialization. Unicorn takes over ...
Kam Figy's user avatar
  • 4,133
11 votes
Accepted

Unicorn how to serialize parent folder and only specific children

Unicorn 3 and above has an option to exclude child items under parent item. In your case you can use as below: <include database="master" name="WFFMSaveActions" path="/sitecore/system/Modules/Web ...
Dheeraj Palagiri's user avatar
10 votes
Accepted

How to use Unicorn for continuous deployment between environments (UAT, Prod, etc.)?

Yes, you can do the sync with almost any kind of script. Basically you can call the /unicorn.aspx with parameters. Here you can find the whole documentation about this. This example is working with ...
Tamás Tárnok's user avatar
9 votes
Accepted

Packaging up items from Unicorn into a Sitecore package

As far as I know, I can say no there isn't at this point. Please correct me if I am wrong someone. However you can do the following to deploy sitecore items. Source: https://github.com/kamsar/Unicorn ...
Anicho's user avatar
  • 1,419
8 votes
Accepted

You cannot have a sparse serialized tree

It could be a couple of things. When does this error happen to you? when starting up your Sitecore instance, or when you try and add new items to be serialised? The error comes, when an item under ...
Mark Cassidy's user avatar
  • 25.1k
8 votes

Unicorn how to serialize parent folder and only specific children

One way to do this using Unicorn 3 is with <exclude> and <except> elements. This can be done like so: <include name="xxxxxx.Foundation.CustomWffmFieldTypes.SaveActions" ...
Matthew Dresser's user avatar
8 votes
Accepted

Unknown connection string. Name: '$(1)' - Unicorn

Had the same issue due to the SC Hackathon 2021 with Sitecore v. 10.1. Resolved by change this resolved by change this config Unicorn.DataProvider.config section: <databases> <...
Vadim Birkos's user avatar
7 votes

Packaging up items from Unicorn into a Sitecore package

For anyone coming to this question far in the future, you can explicitly combine your Unicorn configuration into a package with SPE See https://kamsar.net/index.php/2017/02/Unicorn-4-Preview-Part-2-5-...
Kam Figy's user avatar
  • 4,133
7 votes

Packaging up items from Unicorn into a Sitecore package

There is Sitecore Courier which generates a package from your serialized items. It also supports Unicorn files. You can then use Sitecore Ship to install the package on a remote server.
Thomas D's user avatar
  • 1,703
7 votes
Accepted

Error setting up Habitat instance of Sitecore with "Could not instantiate event handler." error

There is a mismatch between your Sitecore binaries and Sitecore configuration. The OnPackageInstallStartingRemoteHandler method was only added to PackagingEventHandler in Sitecore 8.2 Update 1. It ...
Dmytro Shevchenko's user avatar
7 votes
Accepted

Is Unicorn obsolete with Sitecore 10?

This question is very close to being opinion based, but I think we can answer the differences more factually here. tl/dr: No, Unicorn is not obsolete with Sitecore 10. Unicorn is not compatible with ...
Richard Seal's user avatar
  • 20.4k
6 votes
Accepted

Does Unicorn pick up database cleanup process and reserialize?

I asked a similar question a little while back, about the interop between Sitecore and Unicorn on disk files. If you have Transparent-Sync on or have your Unicorn.DataProvider.config file configured, ...
Chris Auer's user avatar
  • 13.1k
6 votes
Accepted

Unicorn writing to disk with Transparent Sync off

Transparent Sync is off by default and something you deliberately enable. With Transparent Sync, for items controlled by Unicorn it bypasses the Sitecore database completely. In effect, the filesystem ...
Kasaku's user avatar
  • 4,164
6 votes
Accepted

Using Unicorn to Generate Glass Mapper Models

The Sitecore.CodeGenerator project can convert serialized Sitecore items into GlassMapper classes, and it contains support for the Rainbow serialization format (used by Unicorn 3). The project page ...
Kasaku's user avatar
  • 4,164
6 votes
Accepted

Is it possible to reserialize using powershell script? ps1

I think the powershell functions you're looking for are: # Reserialize one Export-UnicornConfiguration "Foundation.Foo" # Reserialize multiple by name Export-UnicornConfiguration @("Foundation.Foo"...
Owen Niblock's user avatar
  • 1,512
6 votes
Accepted

Where are the access rights stored for security roles in serialized files?

Security stored on items Access rights (security) are stored on the item itself, in the __Security field. You can see the contents of this field in a few ways: Security Details tab In the Content ...
Dan Sinclair's user avatar
  • 5,375
6 votes
Accepted

Setting up HelixBase with Sitecore 9.1 and unsure how to run Unicorn

Sitecore 9.1 uses identity server for authorization. muso31/Helixbase uses unicorn 4.0.4 and old version of Rainbow. Just update Unicorn to 4.0.7 version and Rainbow to 2.0.5. There are some changes ...
x3mxray's user avatar
  • 3,150
6 votes
Accepted

Sitecore upgrade from 9.0.2 to 9.3 issue

Looks like it might be a problem with Unicorn. In 9.3 Sitecore removed the Context property from the pipeline args, but your older version of Unicorn is trying to access it. They have fixed this ...
Aidy's user avatar
  • 213
5 votes
Accepted

Cannot save a Sitecore item. The error message says the parent item was not serialized

This is a Unicorn/Rainbow error that occurs when the item being saved (serialized to disc) does not have its parent item serialized. This indicates that you are using Unicorn not only on your local ...
Dmytro Shevchenko's user avatar
5 votes

Unicorn (2.0.4) issue when renaming items

This is hard to answer because it's really several questions at once. To start with, YES Unicorn 3 handles things much better because it has more control over its serialization system. Unicorn 2 is a ...
Kam Figy's user avatar
  • 4,133
5 votes

How to use Unicorn for continuous deployment between environments (UAT, Prod, etc.)?

It is exactly possible to use the Unicorn for Continuous Delivery. I have some suggestions: First of all, you need to put files (which are generated by Unicorn) under source control. You need to ...
Artem Prashkovich's user avatar
5 votes
Accepted

Creating a patch config file for Rainbow.SFS.SerializationFolderPathMaxLength

Create a patch file; z.Rainbow.config. <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> <sitecore> <...
Mark Cassidy's user avatar
  • 25.1k
5 votes
Accepted

How to view history of yml files (before they have pending changes)

TIL that Visual Studio 2017 introduced a Solution Explorer toolbar to switch between the classic "Solution" view and to a "Source Files" view which shows the files and folder structure which is on ...
jammykam's user avatar
  • 13.8k

Only top scored, non community-wiki answers of a minimum length are eligible