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 / The script couldn't cr...
Power Automate
Unanswered

The script couldn't create a connection with Excel.

(5) ShareShare
ReportReport
Posted on by 213

Hi,
I have a flow that uploads the file into the Sharepoint site and then runs a script to make changes in the file.
But I'm receiving the following error, 
"We were unable to run the script. Please try again. The script couldn't create a connection with Excel"

I have realized that when a file created in the SharePoint library, the file is shown only in view mode. I assume this could be the reason.
I have tested similar flows that upload the file as in edit mode, scripts run.

Any idea how to fix this issue?

Regards,
Serbay

 

Categories:
I have the same question (3)
  • Verified answer
    Serbay Profile Picture
    213 on at

    I have solved the issue by adding check out/check in actions 
    Regards,

    Serbay

     

  • Community Power Platform Member Profile Picture
    on at

    @Serbay  could you post a picture of the part of your flow where you added the checkout / check in actions please?

  • Serbay Profile Picture
    213 on at

    Hi @Anonymous 
    Here is an example for you;

    Serbay_0-1622233949982.png

     

     

  • mlopez Profile Picture
    4 on at

    I cannot seem to get this flow to work. Can I see properties you are using?

  • Community Power Platform Member Profile Picture
    on at

    I have the same error dynamically setting the file name rather than picking it. Picking the file works. My error is:

     

    We were unable to run the script. Please try again.

    The script couldn't create a connection with Excel. Please try again.

     

    I have tried checking out / in the document and tried using the identifier but no luck. Here's my Flow:

     

    capture.png

  • chaile Profile Picture
    on at

    For anyone else who searches this, my issue was due to no file extension, .xlsx, being added on the 'Create File' step

  • PC_Mn Profile Picture
    4 on at

    Thank you for posting this. The missing .xlsx extension resolved my error.

  • bsfegade Profile Picture
    60 on at

    I am still getting the error.

     

     

     

    { "message": "We were unable to run the script. Please try again.\nThe script couldn't create a connection with Excel. Please try again.\r\nclientRequestId: 07f96g4c-8578-4f3g-93c6-2b6f55fb35d8", "logs": []}

     

     

     

  • franca5 Profile Picture
    3 on at

    im having the same issue. i am truly shocked how clunky the power automate UI is after the update. this is painful.

  • esjimenezp Profile Picture
    485 on at

    Same issue as @bsfegade  any one can help us? 

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