Skip to content

Office script to refresh all data connections of the workbook not working in PowerAutomate #785

@GANESHA1805

Description

@GANESHA1805

Hi experts,
I have used the Office script to refresh all data connections of the workbook. The workbook uses the OLEDB connection to the Power BI dataset.

function main(workbook: ExcelScript.Workbook) {
workbook.refreshAllDataConnections();
}

But while running this script via Power Automate, I get the following error.

**Error
Action 'Run_script' failed

We were unable to run the script. Please try again.
Office JS error: Line 2: Workbook refreshAllDataConnections: There was an internal error while processing the request.
clientRequestId: f8c5616e-ecb9-4670-9eaf-a7764e754453**

some hints please...

Metadata

Metadata

Labels

Needs: attention 👋Waiting on Microsoft to provide feedbackType: product bugBug in the Office Scripts platform or Office Scripts APIs

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions