View Website Error Logs in Power Pages
View Website Error Logs in Power Pages
Power Pages provides multiple options to view and manage website error logs, helping administrators and developers troubleshoot issues efficiently.
These logs include custom errors, plugin errors, and diagnostic logs stored in Azure Blob Storage.
---Custom Error Handling
- By default, users see a friendly error page
- Disable custom errors to view full server stack trace (YSOD)
- Enable custom errors for user-friendly messages
Enable / Disable Custom Errors
- Go to Power Platform Admin Center.
- Select Resources → Power Pages Sites.
- Open your site.
- Go to Site Actions.
- Choose Enable or Disable Custom Errors.
- Confirm changes (site restarts briefly).
Enable Diagnostic Logging
- Go to Power Platform Admin Center → Power Pages Sites.
- Select your site.
- Open Site Actions → Enable Diagnostic Logs.
- Configure retention period (1–180 days).
- Provide Azure Blob Storage connection string.
- Enable logging.
Update or Disable Logging
- Update retention or connection string anytime
- Disable logging when not needed
- Maintain storage hygiene for cost optimization
Plugin Error Display
You can display Dataverse plugin errors directly on Power Pages forms for easier debugging.
- Set Site/EnableCustomPluginError = True
- Displays error message (no stack trace)
- Works for forms, lists, and multistep forms
Best Practices
- Enable logging only in development or troubleshooting
- Use custom error pages for production
- Monitor Azure storage cost regularly
- Restrict access to diagnostic logs
Key Takeaways
- Error logs help debug Power Pages issues
- Diagnostic logging uses Azure Blob Storage
- Custom and plugin errors can be controlled
- Essential for troubleshooting production issues