From fef50e66b5d3e84ac8368d02c4e0ca77c82ba36b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Jan 2026 09:08:41 +0000 Subject: [PATCH 1/3] Initial plan From efe0e826a154ff9b2e66a9d6ca937cd2fb33e1e0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Jan 2026 09:17:20 +0000 Subject: [PATCH 2/3] Fix: Change admin_DelayObjectInventory default to 'yes' and add flow performance documentation Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com> --- CenterofExcellenceCoreComponents/README.md | 15 +- .../environmentvariabledefinition.xml | 6 +- .../TROUBLESHOOTING-FLOW-PERFORMANCE.md | 371 ++++++++++++++++++ docs/issue-response-templates.md | 60 +++ 4 files changed, 448 insertions(+), 4 deletions(-) create mode 100644 CenterofExcellenceCoreComponents/TROUBLESHOOTING-FLOW-PERFORMANCE.md diff --git a/CenterofExcellenceCoreComponents/README.md b/CenterofExcellenceCoreComponents/README.md index c2f73aa3c..b3780a12a 100644 --- a/CenterofExcellenceCoreComponents/README.md +++ b/CenterofExcellenceCoreComponents/README.md @@ -83,10 +83,20 @@ This solution contains the core components for the CoE Starter Kit, including in ### Inventory and Sync Issues +- **[Flow Performance and Long Runtimes](./TROUBLESHOOTING-FLOW-PERFORMANCE.md)** - Guide for resolving issues where sync flows take 7+ hours to complete - **[PVA/Copilot Studio Sync Issues](./TROUBLESHOOTING-PVA-SYNC.md)** - Guide for resolving issues where not all bots appear in the inventory ### Common Questions +**Q: Why are my sync flows taking 7+ hours to complete?** + +A: This is typically caused by API throttling when multiple flows run concurrently. To resolve: +1. Set `admin_DelayObjectInventory` to `Yes` +2. Verify `admin_DelayInventory` is set to `Yes` +3. Ensure `admin_FullInventory` is set to `No` (for regular runs) + +The delay settings spread API calls over time, preventing throttling and reducing runtime to 30-120 minutes. See the **[Flow Performance Troubleshooting Guide](./TROUBLESHOOTING-FLOW-PERFORMANCE.md)** for detailed resolution steps. + **Q: Why aren't all my resources showing up in the inventory?** A: The inventory flows run in incremental mode by default, which only syncs new or recently modified resources. To capture all resources, you need to run a full inventory by setting the `admin_FullInventory` environment variable to `Yes`. Remember to set it back to `No` after the full inventory completes. @@ -105,7 +115,10 @@ Key environment variables that control inventory behavior: - `admin_FullInventory` - Run full inventory (Yes/No, default: No) - `admin_InventoryFilter_DaysToLookBack` - Days to look back for modified resources (default: 7) -- `admin_DelayObjectInventory` - Add random delay to avoid throttling (Yes/No, default: No) +- `admin_DelayObjectInventory` - Add delay to prevent API throttling (Yes/No, default: Yes) - **Recommended: Keep enabled** +- `admin_DelayInventory` - Add delay for Dataverse health (Yes/No, default: Yes) - **Recommended: Keep enabled** + +**⚠️ Important**: Keep delay variables enabled to prevent flow performance issues. See the **[Flow Performance Troubleshooting Guide](./TROUBLESHOOTING-FLOW-PERFORMANCE.md)** for details. ## Additional Documentation diff --git a/CenterofExcellenceCoreComponents/SolutionPackage/src/environmentvariabledefinitions/admin_DelayObjectInventory/environmentvariabledefinition.xml b/CenterofExcellenceCoreComponents/SolutionPackage/src/environmentvariabledefinitions/admin_DelayObjectInventory/environmentvariabledefinition.xml index de5969a14..29c816a00 100644 --- a/CenterofExcellenceCoreComponents/SolutionPackage/src/environmentvariabledefinitions/admin_DelayObjectInventory/environmentvariabledefinition.xml +++ b/CenterofExcellenceCoreComponents/SolutionPackage/src/environmentvariabledefinitions/admin_DelayObjectInventory/environmentvariabledefinition.xml @@ -1,7 +1,7 @@ - no - -