After upgrading from Mendix 9.18 to 9.24, our process analytics widget on the dashboard displays a loading spinner indefinitely and never shows data. The console shows “Data source mapping error” but no additional details.
I’ve verified the widget data source mapping in Studio Pro and it points to the correct microflow. The microflow itself runs successfully when tested independently and returns the expected data structure. I’m wondering if there’s an entity reference validation issue introduced in the upgrade that’s breaking the widget’s ability to consume the data.
The underlying process data is intact in the database and other reports work fine. It’s specifically the analytics widget that’s affected. Any ideas what changed in 9.24 that could cause this?
The issue might be with entity references within ProcessMetrics. If your entity has associations to other entities, and those associations weren’t properly migrated during the upgrade, the widget can’t resolve the references. Check your domain model for any broken associations, especially ones that the widget uses for aggregation or filtering.
I’ve seen this exact issue before. Mendix 9.24 changed how widgets handle entity access rules. Even if your microflow returns data, the widget needs explicit read access to all attributes it displays. Check your entity access rules for ProcessMetrics and make sure the widget’s context user role has read access to every attribute the widget tries to render.
Check if the return type of your microflow matches what the widget expects. Mendix 9.24 introduced stricter type checking for widget data sources. The widget might be expecting a list of a specific entity but your microflow is returning a different structure.
That’s interesting about the access rules. I’ll check that. But the microflow runs fine when I test it manually - wouldn’t that mean the access rules are okay?