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 / Sharing Office Scripts...
Power Automate
Unanswered

Sharing Office Scripts Issue

(0) ShareShare
ReportReport
Posted on by 213

Hi All, 
Has anyone faced an issue with sharing Office Scripts to be used in flows for other users?
There is an issue, for users who have access to the flows, files and scripts can not execute the script in flows. 
Error: Script not found. It may been unshared or deleted

 

Any idea?

 

Regards,
Serbay

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,853 Most Valuable Professional on at

    Hi @Serbay,

     

    Can you double check if the specific scripts are enabled for sharing?

    https://support.microsoft.com/en-us/office/sharing-office-scripts-in-excel-for-the-web-226eddbc-3a44-4540-acfe-fccda3d1122b

     

     

  • Serbay Profile Picture
    213 on at

    Yes, I have seen some others facing this issue last week.
    All file access given, flows and scripts shared, still receiving an error.

  • Expiscornovus Profile Picture
    33,853 Most Valuable Professional on at

    Hi @Serbay,

     

    I am able to reproduce it, so it feels like we are missing something. Or it is a bug 😁

     

    Do the other people see the script listed under the This Workbook section of the Office scripts?

    testscript.png

     

    And what happens when they run it manually. Do the get the Run Permission question and does that work?

    runpermission.png

     

    Also the sharing on the Office Script looks ok. It is still hosted in the OneDrive of the original owner.

    officescripts_osts.png

  • Serbay Profile Picture
    213 on at

    Yes, I can see that script has been shared with the user, even I have checked on his account, It can be seen after sharing the script.
    When it comes to running the flow that I have created and shared with the user. The script is not executing, basically giving an error as not found, not shared or deleted.


    Yes, I have tried to run manually, It asks for permission, and I'm allowing it. But not running the script. When I click the run permission again, it keeps asking me to allow or deny but no executing the script. 
    The script runs normally by me but not for a user.

  • Serbay Profile Picture
    213 on at

    I will try to create all scripts again then share them.
    Regards,
    Serbay

  • Serbay Profile Picture
    213 on at

    Update
    A user created a new script and shared it with me, I was able to run the script after clicking allow button.
    But, When I create a script and shared it with the user, the user was not able to run a script after clicking allow button.
    How this could be possible?

     

    Thanks a lot for your answers by the way!
    Regards,
    Serbay

  • Expiscornovus Profile Picture
    33,853 Most Valuable Professional on at

    Hi @Serbay,

     

    I just noticed a new response in that other thread. Over there it is suggested to change the setting for connections used. I have changed that an it was working for me now.

     

    https://powerusers.microsoft.com/t5/Building-Flows/Office-Script-Error-quot-Script-not-found-It-may-have-been/m-p/841815#M117785

     

  • Serbay Profile Picture
    213 on at

    Hi,
    Thank you so much for your response! But, unfortunately, this option is not available for flows that have a Power apps trigger.
    Do you have any other ideas on how to call such a flow only on the behalf of the owner? 


    Best Regards,
    Serbay

  • Yutao Huang Profile Picture
    Microsoft Employee on at

    FYI, I've updated my answer to the linked post with a solution that works for me for the PowerApps trigger: https://powerusers.microsoft.com/t5/Building-Flows/Office-Script-Error-quot-Script-not-found-It-may-have-been/m-p/844662/highlight/true#M118231

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard