Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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?

  • Yutao Huang Profile Picture
    Microsoft Employee on at
    Re: Encountered internal server error.

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow