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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Encountered internal s...
Power Automate
Unanswered

Encountered internal server error.

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I recently changed a script in a working flow and now the run fails every time at the changed flow. The only error that is displayed is: Encountered internal server error. The tracking Id is '8686811b-42e5-4a79-bdeb-c12666ba3a7e'.

 

The code I try to run is basically an export of a big array, which then is imported into another sheet later on in the flow.

 for (var i = 1; i < (mondaysInLast().length + 1); i++) {
 console.log(i);
 let range = Workbook.getWorksheet("KW_" + (wn - i)).getRange("A6:AZ96");
 let value = range.getValues();
 values.push(value);
 
 }
 
 return values;

 

The code is basically looking for  the right sheets, then copies the range given and saves them into the array values. This happens multiple times so that the output is an array containing multiple arrays. If I try to run the script in Excel, it is working properly and a proper result is given:

(5) [4, Array(91), Array(91), Array(91), Array(91)]

 

Why does the flow have a problem with my script?

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

    Hello @niki_7 ,

     

    Can you tell which specific action in your flow displayed this error "Encountered internal server error. The tracking Id is '8686811b-42e5-4a79-bdeb-c12666ba3a7e'".?

     

    I took a look at the logs on our side for the "Run script" action with this tracking ID, but I didn't see any obvious issues.

     

    Maybe it would also help to describe a bit about your flow?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard