Handling 429 throttling problem in Azure Logic Apps across multiple runs

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Community Hub.

Problem

You have a logic app that has a connector action that is failing with 429 – too many requests across multiple runs.

Cause

Having multiple logic app runs running at the same time and using the same connection.

Resolution

Distribute the action executions over two connections using the following steps:

  • Add a ControlSwitch action.
  • Set the Switch On value expression to rand(1,3), this will return either a value of 1 or 2 randomly.

talsaifi_0-1668341821168.png

  • Set the Case Equals to 1 to execute the action using the first connection Connection1.
  • Add an action inside the Case that uses Connection1.

talsaifi_1-1668341821177.png

  • Add another action inside the Default case that uses Connection2.

talsaifi_0-1669818557919.png

The final workflow will look as follows:

talsaifi_1-1668343322828.png

For other scenarios, check the following link: Handle throttling problems, or '429 - Too many requests' errors - Azure Logic Apps | Microsoft Learn

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.