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 / Run Excel script error...
Power Automate
Answered

Run Excel script error when passing dynamic file

(0) ShareShare
ReportReport
Posted on by 65

Hi everyone, 

 

I'm trying run the excel script preview option dynamically on newly created file but i'm getting and error "The parameter 'file' has an invalid value '/Data-03.xlsx'.".

 

The following is my power automate

muges01_0-1594250055699.png

 

Do anyone know how to pass the file dynamically?

 

The goal of this script is the office script to clean the updated file before the user can utilise them.

 

Thank you in advanced.

 

 

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @muges01 

     

    Remove everything from the file and search for identifier from dynamic selector and provide that for the file. Can you try this and see if this resolves the issue? 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • muges01 Profile Picture
    65 on at

    Hi @yashag2255  are you referring to remove the everything and specify the file name dynamic? If so i have done that and is not working.

  • Verified answer
    GeoffRen Profile Picture
    Microsoft Employee on at

    Hi @muges01 

     

    Instead of 'File name with extension' use 'Identifier'. That should work. This is documented here https://docs.microsoft.com/en-gb/connectors/excelonlinebusiness/#known-issues-and-limitations

    GeoffRen_0-1594832639318.png

     

  • muges01 Profile Picture
    65 on at

    Hi @GeoffRen,

     

    That did the trick... Thank very much.

  • muges01 Profile Picture
    65 on at

    Hi @GeoffRen ,

     

    The flow failed for all of them except the first one, wen i drop couple file in the library.

    The error message that i'm getting 

    We were unable to run the script. Please try again.
    The server experienced an issue and couldn't run the script. Please try again in a few moments.

    How can i overcome this issue?

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard