Hi,
I am experiencing an issue with an Excel Script on Power Automate.
When I run the Script from the Workbook everything is fine, but when I run it through Power Automate it goes in timeout and then fails.
Debugging, it seemed that the issue is on these lines of code:
let dataValidation = borderRange.getDataValidation();
// set data Validation on borderRange
dataValidation.setRule(dataValidationRule);
// Data validation error alert changed on borderRange
dataValidation.setPrompt({ showPrompt: true, message: "", title: "" });
// Data validation error alert changed on borderRange
dataValidation.setErrorAlert({ showAlert: true, style: ExcelScript.DataValidationAlertStyle.stop, message: "", title: "" });
// Data validation ignoreblanks changed on borderRange
dataValidation.setIgnoreBlanks(true);
When I comment the code before setting data Validation it works, so it seems the problem is the setRule()
How can I fix this issue?