Issue with Excel Add-In Code: Timeout Error

Nirogini Albertjanstin 0 Reputation points
2024-03-27T06:32:12.9166667+00:00

Our Excel add-in code is now getting a timeout error while updating cells in sheets exceeding 3500 rows. Despite smooth operation before, this issue has surfaced suddenly. We are investigating the root cause and working towards resolving it to restore full functionality to our Excel add-in. We welcome any suggestions or insights. Thanks in advance!

    Excel.run(function (context) {
        var sheet = context.workbook.worksheets.getActiveWorksheet();
        var rangeValues = [];
        resultColumnCells.forEach((element, index) => {
        rangeValues.push(sheet.getRange(element));
        let data = [dataArray[index]];
        rangeValues[index].values = data;
        rangeValues[index].format.autofitColumns();
	})
        return context.sync();
    }).catch(function (errorHandlerFunction) {
        console.error(errorHandlerFunction.code);
        console.error(errorHandlerFunction.message);
    });
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,436 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,454 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,637 questions
0 comments No comments
{count} votes