Common Sitecore DEF Mistakes

So in this short post, I’ll cover a few common mistakes that you might make when starting out configuring your DEF project, I know I certainly did and a fellow colleague hit the same issues on a recent project he just started. Hopefully, it will prevent you from falling into the same trap and banging your head against the wall.

Error An Item with the same key has already been added.

Symptoms: You see the following error being logged when you run your pipeline batch and you have a Resolve Sitecore Item Pipeline Step. You will probably see something like this in your Sitecore logs:

[Date/Time] ERROR An item with the same key has already been added.

[Date/Time] ERROR Pipeline step processing will abort because a critical error occurred during processing.

Possible Cause: You see this occur during the Resolve Sitecore Item pipeline step processor. It usually means you have duplicate field name on the item you are trying to create in Sitecore. Check the template of the Sitecore item you are attempting to create including any inherited templates and resolve any duplicate fields names.

Item is created in Sitecore but the fields are not populated.

Symptoms: You have a pipeline batch with pipeline steps that read data from a source, iterates the items and create an item in Sitecore. The Item is created with the correct identifier, however, the fields on the Sitecore item are not populated.

Possible Cause: Most likely this is an issue with Data Location field has been set incorrectly on a pipeline step. Go through each step and check the location value.

Hope this helps!

Generate Sitecore Support Package via Admin Tools

So I’ve been happily running the standalone SSPG (Sitecore Support Package Generator) for some time now, that is until my good friend Bill Cacy pointed out – it can now be generated via the Sitecore Admin Tools in Sitecore 8.2 onwards!! Wow, how did I miss this?

SSPG is an awesome tool for grabbing a snapshot of useful juicy information about your Sitecore instance to help you diagnose issues when thing go wrong or if just want to simply grab all the log files for a specified period of time.┬áIf you’ve never used it then chances are you’ve never had to raise a Sitecore support ticket, as this is one of the first things they will almost always ask for if you don’t provide it to them beforehand.

By making it available in Admin Tools Sitecore have made the process of generating this package and uploading it to the Sitecore FTP support location much much simpler.

1. Select Support Package from the Sitecore Admin Tools Index page (sitecore/admin/default.aspx)

sspg1 Continue reading