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 / Run Script - Script No...
Power Automate
Unanswered

Run Script - Script Not Found

(1) ShareShare
ReportReport
Posted on by 8
Hi,
 
Every night an excel spreadsheet is created in a sharepoint folder.  The previous version is deleted, then the new one is created.  The file has the same path and file name on every creation.  I'm trying to run an excel script on this sheet, and it works, but at some number of runs it stops, with a Script Not Found error.  The most amount of times I've had it run is 4.
 
I initially set this up on my OneDrive business account, but as part of trying to get this to work I moved the .osts file into the sharepoint and used the Run Script From Sharepoint Library and pointed that at the .osts file.  This worked for the first two runs, and now I get the same error, 'Script Not Found'.
 
When I open the sheet manually I can run the script on the file and it works.  The script works the first time, everytime, but at some point stops being found in either the sharepoint or OneDrive Business.  Everything is done in my work account, I don't change the script in anyway, editing it, moving it or renaming it between runs.  I save it once and then don't touch it.
 
Any advice is appreciated.
Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at
  • TI-15090118-0 Profile Picture
    8 on at
    Thanks developerAJ, I have gone through these steps and still get the same problem.
     
    I've shared the osts and a workbook it is in with myself, and I still get the script not found error after it runs at least once.  The first time will always work, but then I get the Script not found error.
     
    Even if I trigger this script after a couple minutes of the first run, I still get the script not found.
  • developerAJ Profile Picture
    4,763 on at
    Thats strange it would be great if you can share screenshot of flow runs
    first time when its successful and also when it got failed. We can try to understand if their is any reason
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at
    Hey Mate, You should review - https://learn.microsoft.com/en-us/office/dev/scripts/overview/script-storage?tabs=business#sharepoint  As Office Scripts are stored in your OneDrive by default /Documents/Office Scripts/ and when you move them they something take sometime to work.  This is another article you should review - https://support.microsoft.com/en-us/office/sharing-office-scripts-in-excel-226eddbc-3a44-4540-acfe-fccda3d1122b 
     
    If nothing helps, I would suggest try to create a new script(simple one) and see if you can reproduce the problem after moving the Script.
     
    If it helped you, please click "Does this answer your question?" and give it a like or mark it as Solution, it helps others in the community find answers more easily!
    Connect With Me:
    💼 LinkedIn: Clavin Fernandes
    📺 YouTube: Clavin Fernandes
    📝 Blog: clavinfernandes.wordpress.com
    🌐 Community Website: PPUG.org
    👥 Join our Community: Power Platform User Group
     

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 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard