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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Handle Excel Macro Errors
Power Automate
Unanswered

Handle Excel Macro Errors

(0) ShareShare
ReportReport
Posted on by 31

Hi everyone,

 

I was wondering how are you handling Macro Errors with PAD, usually in other RPA tools we can retrieve the output values from the Macro and read them through the RPA application but in this case I just see that with PAD we can only send parameters but we can't receive.

 

Any ideas to know when a Macro fails?

 

Thanks!

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Can you tell the macro to write a log file and PAD can read the log file?  PAD will get stuck on a macro if the macro doesn't successfully finish; therefore, I would put an OnError in your macro, so it can write the error to a log file and end "successfully", so PAD can get out.  Then I would have "if file exists [errorlog].txt" then take an action based off the contents of the file, but if it doesn't exist, then assume Excel Macro worked and move on.

     

    Good luck!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard