Logic Apps Agent returns InternalServerError and retry policy cannot be saved

Ruoxuan Zhang (LTIMindtree Limited) 20 Reputation points Microsoft External Staff
2026-07-21T18:02:35.5433333+00:00

Issue 1 – Runtime failure 

The workflow generally executes successfully. 

However, during some executions, the Agent action fails with an InternalServerError

This causes the workflow run to fail even though no changes were made to the workflow or its inputs. 

  • The error appears to be intermittent and cannot be reproduced consistently. Issue 1 – Runtime failure 
    • The workflow generally executes successfully. 
    • However, during some executions, the Agent action fails with an InternalServerError
    • This causes the workflow run to fail even though no changes were made to the workflow or its inputs. 
    • The error appears to be intermittent and cannot be reproduced consistently. 

Issue 2 – Retry policy configuration 

  • As a mitigation, we attempted to configure a retry policy on the Agent action. 

However, when saving the workflow after adding the retry policy, the Logic Apps designer itself returns an InternalServerError, preventing the retry policy from being saved. 

  • As a result, we cannot implement the recommended retry mechanism to mitigate the intermittent runtime failures. Issue 2 – Retry policy configuration 
    • As a mitigation, we attempted to configure a retry policy on the Agent action. 
    • However, when saving the workflow after adding the retry policy, the Logic Apps designer itself returns an InternalServerError, preventing the retry policy from being saved. 
    • As a result, we cannot implement the recommended retry mechanism to mitigate the intermittent runtime failures. 
Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.


Answer accepted by question author
Alex Burlachenko 25,115 Reputation points MVP Volunteer Moderator
2026-07-22T07:36:08.3766667+00:00

hi Ruoxuan Zhang (LTIMindtree Limited) & thx for sharing urs issue here at Q&A portal,

look like two separate service-side failures. The intermittent InternalServerError from the Agent action is most likely a transient backend issue. A retry policy would normally be the right mitigation for a 5xx response, but only when that action supports configurable retries. Logic Apps documentation confirms that retry policies apply to supported actions and can also be added through code view.

The save operation returning another InternalServerError is the more important issue. That means the designer or workflow validation backend is rejecting the configuration before it can even be deployed. Try adding the retryPolicy directly in code view. If saving still fails, this isn’t something that can be fixed in the workflow logic.

Microsoft will need the failed run ID, workflow save correlation ID, exact UTC timestamps, region, Logic App type, and the Agent action definition. They should check both the Agent runtime telemetry and the Microsoft.Logic workflow validation logs.

rgds,

Alex

&

If my answer was helpful pls mark it and additional thx if u follow me at Q&A portal

and at my blog https://ctrlaltdel.blog/

 

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.