Close page activity fails - i.closePage(...).finally is not a function
The project I’m currently working on always throws an error when calling ‘Close page’ activity from a microflow. This is the full error: An error occurred while executing an action of MyData.Page.actionButton1: i.closePage(...).finally is not a function 4488/m/A/<@http://localhost:8080/mxclientsystem/mxui/mxui.js?637780112548592617:68:121098 we@http://localhost:8080/mxclientsystem/mxui/mxui.js?637780112548592617:24:6501 i@http://localhost:8080/mxclientsystem/mxui/mxui.js?637780112548592617:24:6402 x@http://localhost:8080/mxclientsystem/mxui/mxui.js?637780112548592617:66:5472 I found https://forum.mendix.com/link/questions/100774 and https://forum.mendix.com/link/questions/61762 to be related to the same error, where the context appears lost which makes the navigation fail. However, these threads are specifically about custom widgets. For me, the errors occurs when simply using out-of-the-box microflows and pages based on Atlas Core PopupLayout/Atlas_Default. The error occurs both for pop-up pages and normal (Atlas_Default based) pages. Setting ‘Close page’ as event for a button works, only ‘Close page’ from microflow fails. Any idea why this problem occurs and how to solve it? The project does make extensive use of non-persistable entities, I’m not sure this could be related to the context for the navigation getting lost.
we had the same issue and resolved by deleting a widget called PrintPDF.
In your case it might be some other widget, please check you last working version and see if what are the new widgets added from that version, then delete and try again.
Hope it resolves your issue,
Same problem here! Also only non-persistable entities – Mx Studio Pro 9.9.1 and Mx Studio Pro 9.10.1. We have fixed the error by removing the PrintScreen widget from our project.