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 / Action 'Run Script' Ru...
Power Automate
Suggested Answer

Action 'Run Script' Runtime Error quotes non-existent code

(0) ShareShare
ReportReport
Posted on by
Hi there, as per the description above, I am receiving a Runtime Error when testing my workflow at the 'Run Script' stage.  See below:
 
Runtime error: Line 9: charts.findAsync is not a function
 
The excel document that contains the script previously contained "charts.findAsync" in the script.  This was corrected and Line 9 of the script is now:
 
charts.find((c) => c.getName() === "Chart 2");
 
I have rebuilt the Workflow from scratch once the script changed, however still receiving the same Runtime error message above. 
Categories:
I have the same question (0)
  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,874 Super User 2025 Season 2 on at
    Hi,
    • Go to your Power Automate Flow.

    • Delete the Run Script action.

    • Add a new Run Script action.

    • Select the newly renamed script (FindChartByName_V2).

    • Re-map any parameters needed.

    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard