SharePoint An unexpected error has occurred - Correlation ID and Merge-SPlogfile


When SharePoint throws an error, it just says "An unexpected error has occurred" and expects the developer to put more efforts for finding the exact issue. That is quite frustrating at times !!

The SharePoint Logs are stored on your Server – HIVE\LOGS (usually HIVE is – C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions)

Scan through all your logs, find the relevant log (based on date-time) which should have your error details (use the 'Date and Time' value). Then open the file and search for the 'Correlation ID', this will give you more specific details about the error.

This could take up some time for reaching the exact error and issue. Is there an easier way? -Yes.

PowerShell Merge-SPlogfile- Use this PowerShell command to filter logs based on Correlation ID http://code2care.org/2015/merge-splogfile-sharepoint-correlation-id-error

SharePoint ULS Log Viewer - This is free Codeplex tool for viewing ULS logs http://ulsviewer.codeplex.com