Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions