How to Collect SharePoint Error Details Before Escalation
🔍 WiseChecker

How to Collect SharePoint Error Details Before Escalation

When a SharePoint site or feature stops working, you need specific error details before contacting support. Generic error messages like “Something went wrong” do not help Microsoft support engineers diagnose the problem. This article explains exactly which logs, screenshots, and configuration data to collect before you open a support ticket. You will learn how to gather SharePoint error details from the browser, PowerShell, and the SharePoint admin center.

Key Takeaways: Collecting SharePoint Error Evidence for Support

  • Browser Developer Tools Network tab: Captures HTTP request and response headers with correlation IDs and status codes.
  • SharePoint admin center > Health > Service Health: Shows current service incidents that may cause errors.
  • SharePoint Online Management Shell: Retrieves site collection logs and permission reports using PowerShell cmdlets.
  • UlsViewer (SharePoint Server only): Reads Unified Logging Service logs for on-premises farm errors.

ADVERTISEMENT

Why SharePoint Error Messages Are Often Unhelpful

SharePoint displays generic error pages to end users to avoid exposing sensitive server information. A typical error page shows “An unexpected error has occurred” or “Sorry, something went wrong.” These messages lack the technical details support engineers need. Behind the generic page, SharePoint generates logs with correlation IDs, stack traces, and HTTP status codes. Support teams use these logs to trace the exact request that failed. Without these details, escalation takes longer because support must ask for the same information repeatedly.

The Role of the Correlation ID

Every SharePoint request generates a unique correlation ID. This GUID links the error to server-side logs. When you provide the correlation ID, support can locate the exact log entry for your session. Without it, support must search through logs by time range, which is less precise and slower.

HTTP Status Codes and Their Meaning

SharePoint errors return standard HTTP status codes. A 403 code means the user lacks permission. A 404 code means the page or file does not exist. A 500 code indicates a server error. Capturing these codes helps support categorize the issue immediately.

Steps to Collect SharePoint Error Details from the Browser

  1. Open Browser Developer Tools
    Press F12 in Chrome, Edge, or Firefox. Switch to the Network tab before reproducing the error.
  2. Reproduce the Error
    Perform the action that triggers the error. For example, open a document library or click a SharePoint link that fails.
  3. Locate the Failed Request
    In the Network tab, look for the request that returned a red or 4xx/5xx status code. Click that request to view details.
  4. Copy the Correlation ID
    In the Headers tab, find the SPRequestGuid or X-SharePointHealthScore header. The correlation ID looks like a 32-character hex string: a1b2c3d4-e5f6-7890-abcd-ef1234567890.
  5. Copy the Response Body
    Switch to the Response tab. Copy the full error text, including any stack trace or exception message.
  6. Take a Screenshot of the Network Tab
    Capture the entire Network tab showing the failed request and its headers. Include the URL bar so support sees the exact site address.

ADVERTISEMENT

Steps to Collect SharePoint Error Details Using PowerShell

For SharePoint Online, use the SharePoint Online Management Shell. For SharePoint Server, use the SharePoint Management Shell. PowerShell provides access to logs that the browser cannot show.

Connect to SharePoint Online

  1. Install the Module
    Run Install-Module -Name Microsoft.Online.SharePoint.PowerShell as an administrator.
  2. Connect to the Service
    Run Connect-SPOService -Url https://yourtenant-admin.sharepoint.com and sign in with a global admin account.
  3. Get Site Collection Logs
    Run Get-SPOSite -Identity https://yourtenant.sharepoint.com/sites/siteurl | Select-Object to retrieve site properties. Look for the StorageUsageCurrent, LastContentModifiedDate, and SharingCapability fields.
  4. Check Site Collection Health
    Run Get-SPOSiteHealth -Identity https://yourtenant.sharepoint.com/sites/siteurl to see any health warnings or errors.

Connect to SharePoint Server

  1. Open SharePoint Management Shell
    Right-click and run as administrator on the SharePoint server.
  2. Get ULS Logs
    Run Get-SPLogEvent -StartTime (Get-Date).AddMinutes(-30) -EndTime (Get-Date) | Where-Object {$_.Level -eq "Error" -or $_.Level -eq "Critical"} | Export-Csv C:\temp\uls_errors.csv to export recent errors.
  3. Get Timer Job Status
    Run Get-SPTimerJob | Where-Object {$_.Status -eq "Failed"} to identify failed timer jobs that may cause site errors.

Steps to Collect SharePoint Error Details from the Admin Center

  1. Open SharePoint Admin Center
    Go to https://admin.microsoft.com and navigate to SharePoint admin center or Admin centers > SharePoint.
  2. Check Service Health
    Click Health > Service Health. Look for any active incidents or advisories for SharePoint Online. If an incident is active, the error is likely caused by a service issue, not your configuration.
  3. Review Site Collection Reports
    In the admin center, go to Reports > Usage. Export the site usage report for the affected site. This report shows storage, traffic, and sharing activity that may correlate with the error.
  4. Check Sharing and Permission Settings
    Go to Policies > Sharing. Note whether external sharing is enabled or restricted. Permission errors often stem from sharing policies that block guest access.

If SharePoint Still Shows Vague Error Messages After Collection

SharePoint Error Does Not Include a Correlation ID

Some custom or third-party SharePoint pages suppress the correlation ID. In this case, use the browser Developer Tools Network tab as described above to capture the request headers. The correlation ID always appears in the response headers even if the page hides it.

PowerShell Connection Fails

If the SharePoint Online Management Shell cannot connect, verify that your account has global admin or SharePoint admin role. Also check that the tenant URL is correct and that you are not behind a proxy that blocks the connection. Use Set-ExecutionPolicy RemoteSigned if the script execution is blocked.

ULS Logs Are Too Large to Search

On SharePoint Server, ULS logs can grow to several gigabytes. Narrow the time window to 15 minutes before and after the error. Use the Get-SPLogEvent cmdlet with precise start and end times to reduce the result set.

Browser Developer Tools vs PowerShell: What Each Provides

Item Browser Developer Tools PowerShell
Correlation ID Yes, in response headers No, not directly available
HTTP status code Yes, visible in Network tab No
Response body with stack trace Yes, in Response tab No
Site collection properties No Yes, via Get-SPOSite
ULS logs (on-premises) No Yes, via Get-SPLogEvent
Service health status No No, use admin center instead

Conclusion

You can now collect SharePoint error details using browser Developer Tools, PowerShell, and the SharePoint admin center. Always start with the Network tab to capture the correlation ID and HTTP status code. Use PowerShell to retrieve site health and ULS logs for on-premises environments. Before you escalate, export the service health status from the admin center to rule out a Microsoft service incident. This data reduces back-and-forth with support and speeds up the resolution of your SharePoint issue.

ADVERTISEMENT