Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

Sync flows (v3 Flow Action Details, v4 Flows) run 7+ hours instead of 30-120 minutes when the Driver triggers 20+ child flows concurrently. Without delays, concurrent API calls exceed Dataverse limits (6,000 req/5min), causing exponential retry backoff that extends runtime by hours.

Changes

Environment Variable Default

  • admin_DelayObjectInventory: noyes
  • Spreads environment processing over time, preventing throttling
  • Existing installations unaffected (use current values, not defaults)

Documentation

  • New TROUBLESHOOTING-FLOW-PERFORMANCE.md: root cause analysis, resolution steps, runtime benchmarks
  • Updated README.md: added FAQ entry, updated environment variable table
  • Added issue response template for flow performance issues
  • Consistency updates across existing docs

Technical Detail

Counterintuitive fix: Adding randomized delays (1-5min) between environment inventories makes flows complete faster by avoiding throttling retries. Without delays, flows hit API limits → retry with exponential backoff (1min → 2min → 4min → 8min...) → cascading delays across all concurrent flows.

Migration Path

Existing installations experiencing this issue:

admin_DelayObjectInventory = Yes
admin_DelayInventory = Yes (already default)
admin_FullInventory = No (unless doing initial inventory)

Expected runtime: 30-90 minutes (v4 Flows), 1-2 hours (v3 Flow Action Details)

Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] ISSUE TITLE</issue_title>
<issue_description>### Does this bug already exist in our backlog?

  • I have checked and confirm this is a new bug.

Describe the issue

Admin | Sync Template v3 (Flow Action Details) in this for some environments it is in Running state for long more than 7 hrs.
Also the
Admin | Sync Template v4 (Flows) . Both are triggered on the environment table change and might be that is causing the throttle..

Expected Behavior

Should complete the flow in max 1 hour-...as before

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.50.6

What app or flow are you having the issue with?

Admin | Sync Template v3 (Flow Action Details)

What method are you using to get inventory and telemetry?

None

Steps To Reproduce

No response

Anything else?

No response</issue_description>

<agent_instructions>Need root cause analysis on taking time</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@mohamrizwa Hi @Naz931, Thank you for reporting this issue. After analyzing the flow definitions and architecture, the 7+ hour runtime is caused by **API throttling from concurrent flow executions**, not a bug in the flows themselves.

🎯 Immediate Solution

  1. Enable throttling prevention settings:

    • Navigate to Power AppsSolutionsCenter of Excellence - Core ComponentsEnvironment Variables
    • Find admin_DelayObjectInventory and set Current Value = Yes
    • Find admin_DelayInventory and set Current Value = Yes
  2. Verify inventory mode:

    • Find admin_FullInventory and verify Current Value = No (for regular scheduled runs)
  3. Allow settings to take effect:

    • Changes apply on the next Driver run

📊 Expected Results

With delays enabled and incremental mode:

  • v4 Flows: 30-90 minutes (depending on tenant size)
  • v3 Flow Action Details: 1-2 hours (processes more detailed data)

🔍 Why This Happens

When the Driver flow updates environment records, it triggers 20+ child flows simultaneously. Without delay settings, this creates thousands of concurrent API calls that exceed Dataverse throttling limits (6,000 requests per 5 minutes). The flows then retry with exponential backoff, extending runtime from minutes to hours.

Custom agent used: CoE Custom Agent
Specialized agent for triaging and fixing issues in the CoE Starter Kit. Always consult the official CoE docs and the team’s SharePoint notes first, then mine prior GitHub issues and the CoE Common Responses playbook.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 30, 2026 09:17
…performance documentation

Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com>
…t value

Co-authored-by: mohamrizwa <220306360+mohamrizwa@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix long running state in Sync Template v3 Fix sync flow throttling: default admin_DelayObjectInventory to "yes" Jan 30, 2026
Copilot AI requested a review from mohamrizwa January 30, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CoE Starter Kit - BUG] ISSUE TITLE

2 participants