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