I have a screen flow that calls an action "refreshPage" to refresh page after updating record.
It was working fine for several months but recently it started to fail and give the following error message:
Failed to initialize a component [No owner specified for component markup://c:refreshPage
I have searched this error message for the whole day but still cannot find any relevant discussion.
Below is my code for this component:
.cmp
<aura:component implements="lightning:availableForFlowActions">
</aura:component>
controller.js
invoke : function(component, event, helper) {
$A.get("e.force:refreshView").fire();
}
I also tried window.location.reload() and window.location.top.reload() in my controller but the error persists.
Any advice on what the error means or how the code can be fixed is much appreciated.
Thank you.