web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get last error out act...
Power Automate
Unanswered

Get last error out action not clearing

(0) ShareShare
ReportReport
Posted on by 128

I noticed when using the Get last error action in power automate desktop that it's persisting the error from run to run even when I switch on 'clear error'. This causes a perfectly successful run to output an error from a previous unsuccessful run. Has anyone lese noticed this behavior? 

I have the same question (0)
  • Zave Profile Picture
    88 on at

    Hi,

    That option is meant to clear the value of the variable in the same flow and in the same run, there is no persistence between flow runs if that's what you're implying.

  • Nuchem Profile Picture
    128 on at

    So from my experience there seems to be persistence between flow runs. So I see both cases happening. 

     

    1. The flow runs successfully to the end but 'last error' gives me an error value instead of 'No Error'

    2. The flow fails but 'last error' gives me a 'No Error' value. But this maybe due to my 'Get last error' actions residing at the very end of the flow so perhaps as soon as the error is thrown (somewhere in the middle) it never gets to this one, last 'Get last error' action. On the other hand, it would be quite cumbersome to have a million 'Get last error actions' strewn around, after every action that may throw an error. 

     

    My advice would be to give, for every action that might throw an error, the ability to set a variable 'with the value of the error that this action threw, so that I can output it for some other triggering flow to get.

    For example, now, if I run\trigger a PAD flow with another PAD flow, and something goes wrong in the first PAD flow, the other PAD flow will not get a clear messages as to which action (or variable name) exactly, threw the error (in the same way you can get via Monitor > desktop flows in the power automate portal or even via cloud flow triggers, which are usually more vague than the ones I get in Monitor > Desktop flows.)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 463

#1
Valantis Profile Picture

Valantis 463

#3
11manish Profile Picture

11manish 264

Last 30 days Overall leaderboard