Blog Post

Azure Integration Services Blog
1 MIN READ

Handling 429 throttling problem in Azure Logic Apps across multiple runs

talsaifi's avatar
talsaifi
Icon for Microsoft rankMicrosoft
Nov 30, 2022

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.

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

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

The final workflow will look as follows:

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

Updated Nov 30, 2022
Version 1.0

1 Comment

  • This will work in some scenarios - but it depends greatly on how rate limiting is implemented on the backend service, and whether the two connections use the same credentials. It's important to understand how rate limiting is implemented and which rate limit or quota limit you are hitting. But the general approach is a good one.