web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : H7iHexDyuDBmUgEjxg4ObZ
Power Automate - General Discussion
Unanswered

Execute Excel Script - Unauthorized

Like (1) ShareShare
ReportReport
Posted on 29 Sep 2021 21:44:37 by 47

Hello,

In order to accomplish a couple of things I cannot do directly in Power Automate, I started executing regular expressions using the "Run Excel Script" activity. It had been working fine, but on Monday it started to fail. This execution of the Excel script is inside of an "Apply to each" activity.

What I've done so far to try to fix it:

1. Removed default concurrency to the trigger, so I make sure this process is not executing multiple times in parallel.

2. Removed default concurrency of the "Apply to each" activity, to make sure the process is not trying to execute the script multiple times at the same time.

3. On the Run Excel Script, I've played with the Retry Policy, with no luck.

The issue persists.

The weirdest thing is that this issue might or might not happen on the same execution and within the apply to each.

The Error:

gersontun_0-1632951157850.png

 

In the apply to each activity:

Execution number 5 failed, number 6 succeeded and number 8 failed again.. and so on.

Failed:

gersontun_1-1632951247286.png

Succeeded:

gersontun_2-1632951283538.png

Failed:

gersontun_3-1632951323916.png

 

This is the configuration of the RunScriptPageNumber:

gersontun_4-1632951777533.png

Hope anyone here can help!

 

UPDATE: Now that I am editing the flow, the issue started appearing on the top like this:

gersontun_1-1632952564540.png

 

It seems like the file was not available or I didn't have permissions on the file.

The excel file is saved and closed, no one else is using it.

 

Categories:
  • lucinaperich Profile Picture
    15 on 04 Jun 2024 at 15:07:02
    Re: Execute Excel Script - Unauthorized

    Hi Geoff! Following your message, that very same day I posted on a thread dedicated to the type of action Im having the error with... Still no reply from Microsoft and Im in a very critical position here... My client has been for more than a week without the flows running! How can I have sb at Microsoft answer our dedicated thread?
    Link: https://powerusers.microsoft.com/t5/General-Power-Automate/Unauthorized-Excel-List-Rows-in-a-Table-read-error/m-p/2776096#M170788 
     

  • GeoffRen Profile Picture
    Microsoft Employee on 30 May 2024 at 17:27:47
    Re: Execute Excel Script - Unauthorized

    If this is not for the "Run Script" action, please create a new thread for this. Unfortunately I am not able to assist on any issues that do not pertain to the "Run Script" action.

  • pbeaul Profile Picture
    2 on 30 May 2024 at 17:21:30
    Re: Execute Excel Script - Unauthorized

    I'm running into what appears to be similar authorization issue for the last day or so. Has been working fine for months without any changes.

     

    I'm trying to List Rows in a table, of an excel file I successfully created in SharePoint the step before and I'm getting a 401 Unauthorized issue. Person creating the file can open/read it via SharePoint interface but PowerAutomate is giving me a 401 when I try to read the table.

     

    clientRequestId: e3ba3cc0-04fa-4031-b6ab-521feff3adbf
    serviceRequestId: cd406cc8-8aef-49f6-99f7-cee122288fd7
  • GeoffRen Profile Picture
    Microsoft Employee on 30 May 2024 at 15:26:41
    Re: Execute Excel Script - Unauthorized

    To verify, are you seeing issues with the Run Script action? I can't find your ids in our logs and I'm unaware of any serviceRequestId property. Did you get the clientRequestId from the output like what's underlined in this screenshot? 

    GeoffRen_0-1717082796130.png

     

  • lucinaperich Profile Picture
    15 on 29 May 2024 at 18:36:17
    Re: Execute Excel Script - Unauthorized

    @GeoffRen sure! 

    clientRequestId: d661be94-d7d3-49ce-9325-7406c913553c
    serviceRequestId: 65c0c26c-d2f9-401a-bf93-7587cc7d2d53

    "Unauthorized"


    Thanks

  • GeoffRen Profile Picture
    Microsoft Employee on 29 May 2024 at 17:28:59
    Re: Execute Excel Script - Unauthorized

    @Camila2 @lucinaperich @ACDBT I do not see much evidence of the outage on Thursday/Friday appearing since then. Can you post your clientRequestIds along with the error message? Otherwise we have no way of looking into your issue.

  • GeoffRen Profile Picture
    Microsoft Employee on 29 May 2024 at 17:26:26
    Re: Execute Excel Script - Unauthorized

    @mmccollom  It looks like there was an outage on Thursday/Friday. Looking at your logs it seems that your Flow is working again.

  • ACDBT Profile Picture
    22 on 29 May 2024 at 14:00:09
    Re: Execute Excel Script - Unauthorized

    Also seeing issues on my end, had 3 flows in a row fail just now the moment a basic excel script was called. UK Region

  • lucinaperich Profile Picture
    15 on 29 May 2024 at 13:45:43
    Re: Execute Excel Script - Unauthorized

    Geoff, good morning. There are several fluxes depending on this error on the company I work for. All of them are stopped. Are there any updates on its resolution? Estimated resolution date-time? Thanks.

  • Camila2 Profile Picture
    2 on 29 May 2024 at 13:45:11
    Re: Execute Excel Script - Unauthorized

    We are having the same problem again since Thursday

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete