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 / Running an Excel Scrip...
Power Automate
Unanswered

Running an Excel Script after creating a File in SharePoint Document Library

(0) ShareShare
ReportReport
Posted on by 113

Greetings Power Automate Wizards, 

 

To be completely honest, I have seen a number of threads regarding this issue, but none of them seem to have helped my situation, so I am creating my own. I am building a flow (duh) that when a .txt file is uploaded to a SharePoint Library, it will take the contents of that .txt file, convert it to an Excel document, and (here is where I am having an issue) run a script that will take the contents of the newly created .csv file that converts text to columns and some other formatting things. For more clarification, at a given time, hundreds of .txt files would be uploaded to the SharePoint Document Library at the same time to ensure quick access to them, so there is no time to manually convert each .txt file before uploading, hence the need for this flow. 

 

So far, my steps get me all the way to the "Run Script" step, but that step fails every time. My script file is saved in the same SharePoint Document Library that the .txt files would be uploaded to. Please see both my flow below:

TimDemma_0-1688764213039.png


Please let me know if you have any other clarifying questions or a solution! Appreciate you all! 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @TimDemma 

    Can you share what is the error message you are getting from the flow run history?

     

  • TimDemma Profile Picture
    113 on at

    Hi @Mira_Ghaly

     

    Sorry for the late response. Here is the error I was commonly getting:

    TimDemma_0-1689007369336.png

     

  • TimDemma Profile Picture
    113 on at

    @Mira_Ghaly were you able to come up with any solutions or suggestions?

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard