Validate serialized content items

Abstract

How to validate content items in your file system against the content items in a Sitecore instance.

Each time you run the serialization commands, the Sitecore Content Serialization (SCS) system automatically validates the content items in your file system against the content items in a Sitecore instance to make sure that they all are in the right place and that their references are in order.

You can at any point perform a manual validation of your content items.

To manually validate your content items:

  • Run the sitecore ser validate command.

If you get a validation error, you can run the sitecore ser validate --fix command to sort out most common issues.

Important

If the --fix command finds duplicate content items in your file system, it keeps the last one updated and deletes the oldest one.