Issue: Superset Dashboard Not Showing in DHIS2 Integration

Issue: Superset Dashboard Not Showing in DHIS2 Integration

Hi community,

I’m trying to embed a Superset dashboard in DHIS2, but the dashboard is not showing up. Here are the troubleshooting steps I’ve tried:

  • Double-checked permission settings in Superset.

  • Made sure guest token authentication is working (checked the gateway logs).

  • Looked for CORS or network errors in the browser console and server logs.

  • Restarted both DHIS2 and Superset after making all changes.

Has anyone faced similar issues or can suggest what else I should check? Any help would be appreciated!

  1. Superset Side
  • In superset_config.py set:

    • FEATURE_FLAGS = {'EMBEDDED_SUPERSET': True}

    • ENABLE_DASHBOARD_EMBED = True

    • Ensure ENABLE_CORS = True for your DHIS2 domain.

  • Users need embed-related permissions.

  • After updating config, restart Superset and refresh assets.

  • Use the “Embed dashboard” menu to get the Embed ID.

  1. DHIS2 Side
  • Used the Superset embed app to add a dashboard.

  • Pasted the Embed ID but not working.

  • Also Checked that the DHIS2 Superset Gateway service is running and the connection URLs are correct.

Hi there,

May I ask please what is the version of the DHIS2 instance that you are using? Superset dashboards are supported in the core Dashboard app in version 2.42+, see release note.

I see that you have “enable_dashboard_embed” in the .py file, but my second question is, did you Enable Embedded Mode in the System Settings app? I think you’ll need to do both. See docs, https://docs.dhis2.org/en/use/user-guides/dhis-core-version-242/configuring-the-system/system-settings.html?h=enable+embedded+dashboards+2.42#system_analytics_settings:~:text=Enable%20embedded%20dashboards .

I’m also wondering if you made sure the user that the Superset is using has the proper sharing settings, please see here: Dashboard saving - Error - After upgrade to 2.40.x - Any thing changed? - #2 by Gassim

If all else fails, would you kindly check if there are log issues on the Superset side or when you open the Network and Console tabs in DevTools (F12 > Network).

Thank you!