This repository contains presentation materials and a comprehensive Power Platform solution demonstrating best practices for error handling in Power Automate flows.
Error handling is critical for building robust and reliable Power Automate flows. This session demonstrates various error handling patterns, from basic to advanced implementations, using real-world examples and the Try-Catch-Finally pattern.
Located in the slides/ folder:
- PPCC25 Presentation.pdf - Latest presentation from Power Platform Community Conference 2025
- Old presentations/ - Previous versions from EPPC25 (European Power Platform Conference 2025)
The solutions/ folder contains the Error Handling in Power Automate solution package (version 1.0.0.4) demonstrating:
- Progressive examples from no error handling to advanced patterns
- Try-Catch-Finally scope implementation
- Error handling with child flows
- Complex scenarios with ForEach loops and Switch statements
- Reusable error handler components
- Template flows for implementing error handling
See SOLUTION.md for detailed documentation of the solution components and flows.
- Try-Catch-Finally Pattern - Industry-standard error handling adapted for Power Automate
- Scope-Based Error Handling - Using scopes to isolate and manage errors
- Centralized Error Handling - Reusable child flows for consistent error management
- Error Context Preservation - Capturing and passing error details for debugging
- Complex Flow Patterns - Error handling in loops, switches, and nested scenarios
- Power Platform environment (Developer or higher)
- Dataverse database enabled
- Microsoft Teams connection (for notifications)
- Download the latest solution file:
solutions/ErrorHandlinginPowerAutomate_1_0_0_4.zip - Navigate to Power Apps
- Select your target environment
- Go to Solutions > Import solution
- Upload the zip file and follow the import wizard
- Configure the environment variables:
mni_ErrorHandlerEmail- Email address for error notificationsmni_TestingAPIEndpoint- Valid API endpoint URLmni_TestingAPIEndpointInvalid- Invalid API endpoint (for testing errors)
- Set up connection references for Dataverse and Teams
The solution includes numbered flows that demonstrate progression:
- Start with 001 No error handling to see what happens without error handling
- Review 002 Basic error handling for simple implementations
- Study 003 Advanced error handling for the full Try-Catch-Finally pattern
- Explore 004 and higher for complex scenarios and child flow patterns
- Use 999 Template Try Catch Finally scopes as a starting point for your own flows
The solution uses a custom Dataverse table (mni_session_errorhandling_cars) to demonstrate CRUD operations with proper error handling. Flows interact with this table and external APIs to trigger various error scenarios.
This material supports conference presentations on Power Automate error handling:
- PPCC25 - Power Platform Community Conference 2025
- EPPC25 - European Power Platform Conference 2025
See LICENSE file for details.
Michael Nielsen - Power Platform Specialist