Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We have a SharePoint 2010 feature that works fine on my development machine, but won't activate on the staging system. It's SiteCollection scoped, the containing solution was successfully deployed on one WebApplication.

When we try to activate the feature, we get an error message with a Correlation ID. But we can't find this ID or the name of the feature in the SharePoint Logs nor in the Windows Event Log.

Maybe logging wasn't configured right or there is an error with ULS on the machine, but we haven't changed the SharePoint Logging options from the state they were after installation. Where can I find exception / error messages that happen in ULS? How must Logging be configured to allow the failed feature activation to be logged?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

If you have multiple servers make sure you either check each of the servers or use the following powershell function to extract the error.

Get-SPLogEvent | ?{$_.Correlation -eq ""} | ft Category, Message -Autosize

Here is a great post from Wictor on the logs: http://www.wictorwilen.se/Post/Working-with-SharePoint-2010-Correlation-ID-in-PowerShell-and-code.aspx

share|improve this answer
    
Thx, we tried Get-SPLogEvent and Merge-SPLogFile, but couldn't find anything for the Correlation ID ... –  Hinek Jun 29 '10 at 14:56
    
I have seen the same behaviour when for example Organization mapping failed with correlation ID in Central admin. There were no trace of it in the log files either.. –  Anders Rask Jun 30 '10 at 21:13
    
Hi, now I've found the log message in the log file on another one of the frontend servers. Somehow Get-SPLogEvent and Merge-SPLogFile couldn't find it. If you have a PowerShell example to successful search the logs from all frontends, I would happily accept your answer. –  Hinek Jul 1 '10 at 11:52
    
Same here did not find the proper correlation ID –  Raymund Aug 22 '11 at 4:28
add comment

In Central Administration, you can set the level (Error, Info, Debug, None, etc.) of the errors to be logged.

share|improve this answer
    
I've tried to set both of the dropdown boxes to verbose ... but it didn't help. –  Hinek Jul 1 '10 at 8:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.