SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When doing any sort of development/testing work against SharePoint Online, there are bound to be some errors. Some errors manifest in the form of exceptions, which can be logged to a special-purpose SharePoint list for error details. Other errors, though, cannot be caught as exceptions. For instance:

Sandboxed code execution request failed. 

Troubleshoot issues with Microsoft SharePoint Foundation. 

Correlation ID: 9cde387c-b460-4731-9681-450a7c890310 

Date and Time: 5/16/2012 4:42:13 AM 

On the server version, I would check the logs for the correlation ID to get a detailed stack trace, conditions around the error, etc. Is there any way to get this log information in SharePoint Online?

share|improve this question
up vote 5 down vote accepted

You best chance is to try at least four things while debugging:

  • Use logging library "SharePoint Sandbox Logging" to log errors on feature activation, as you probably know logging capabilities on Sandbox are limited.
  • Have Correlation Id with your error? contact Microsoft support
  • Review SharePoint logs for on-premises Sandbox to check for any errors, warnings that appear during activation
  • Try Literal Debugging
share|improve this answer
Thanks. I'm assuming your third point means testing in a local farm before deployment to SharePoint Online? The problem is there often seem to pop up problems in SharePoint Online which don't manifest in the local sandbox. That "Literal debugging" link is priceless, by the way. Very retro. – Geir Smestad May 16 '12 at 12:35
Yup, on-premises stands for you local Sandbox solution, really, worth a try – Falak Mahmood May 16 '12 at 12:55

Your Answer


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.