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 / 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

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard