Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

Problem when specifying Excel file in Execute Office Scripts action

(0) ShareShare
ReportReport
Posted on by 44

Hello everyone, I'm trying to run a flow with Office Scripts on Excel file red from Sharepoint document library.

Office Script works perfectly when I manually execute it on static Excel file.

However, when I set a dynamic file value from sharepoint library, I get 404 error such:

"The script could not be executed. Please try again. The script was unable to create a connection with Excel. Please try again"

(error message translated from italian...).

Flow extract follows:

Gilgamesh_1-1602258951270.png

 

I've tried Name, DisplayName, Id and more, but nothing seems to work.

Thank you for any help!

 

PS. my flow works with no errors when I remove "Execute script" action... 😏

  • Verified answer
    Gilgamesh Profile Picture
    44 on at
    Re: Problem when specifying Excel file in Execute Office Scripts action

    Thanks for answer @Yutao , I get the result adding an action between "Create file" on Sharepoint and "Run script": choosing "Get file properties" I used the item "Identifier". It worked for me!

     
     
     
     
     

    6VKFty7fDK.png

     

     

  • Yutao Huang Profile Picture
    Microsoft Employee on at
    Re: Problem when specifying Excel file in Execute Office Scripts action

    Hi @Gilgamesh ,

     

    "Id" seems to be working for me.

    Yutao_0-1602262296008.png

     

    If it still doesn't work for you, could you please share (or PM me) the "x-ms-client-request-id" from the error output?

     

    Thanks!

    Yutao

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics