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 / 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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard