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 / Problem when specifyin...
Power Automate
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... 😏

Categories:
I have the same question (0)
  • Yutao Huang Profile Picture
    Microsoft Employee on at

    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

  • Verified answer
    Gilgamesh Profile Picture
    44 on at

    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

     

     

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard