I would like to seek Fork helping on “Failed to Save Dashboard”. My DHIS2 is 2.40.5 and use Admin user to generate data and dashboard; I use Event Report to generate data. The data was shown in Event Report, however while team call this data on Dashboard for HF staff. Team is not able to save it. and got error stated below
as I am limited on technical. could you help to guide me step by step to solve this issue. My main point is can’t save the dashboard after putting line list data on the dashboard (not share DB).
Okay, so this issue probably happens when you are adding a line list which you didn’t create using the same account. If you create a line list using your own account and then create a dashboard and add only that line list which was created by your own account then I suspect that you will not see this issue.
The solution proposed regarding the ‘cascading sharing’ is not to share the DB but to ensure that everyone with access to the Dashboard has access to the favorites within the dashboard. On the other hand, a user might have access to the Dashboard but if they don’t have proper access to the favorite then the error will appear.
Please test step one:
Using the Line Listing app, create and save a line list using your admin account
Create a new Dashboard using the same admin account and add only the line list favorite you created
TypeError: Cannot read properties of undefined (reading 'columns')
TypeError: Cannot read properties of undefined (reading 'columns')
at oi (https://npd.kh/api/apps/line-listing/assets/index-BxRPQ-Y4.js:3:677267)
at oo (https://npd.kh/api/apps/line-listing/assets/index-BxRPQ-Y4.js:3:692173)
at Mi (https://npd.kh/api/apps/line-listing/assets/index-BxRPQ-Y4.js:3:715909)
at https://npd.kh/api/apps/line-listing/assets/index-BxRPQ-Y4.js:3:725414
at Object.useMemo (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:51:23410)
at Ue.useMemo (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:9:6223)
at ji (https://npd.kh/api/apps/line-listing/assets/index-BxRPQ-Y4.js:3:725402)
at Nv (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:51:17081)
at ES (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:53:44058)
at bS (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:53:39790)
at ji (https://npd.kh/api/apps/line-listing/assets/index-BxRPQ-Y4.js:3:724886)
at dRe (https://npd.kh/api/apps/line-listing/assets/index-BxRPQ-Y4.js:3:731265)
at BH (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:89:16992)
at f (https://npd.kh/api/apps/line-listing/assets/PluginWrapper-B5-ucKS5.js:1:750)
at div
at p (https://npd.kh/api/apps/line-listing/assets/PluginWrapper-B5-ucKS5.js:1:1097)
at y
at l4 (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:117:2376)
at Suspense
at Ua (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:98:14032)
at div
at div
at JC (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:101:695)
at zH (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:89:15404)
at WE (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:63:28595)
at qE (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:63:30136)
at ZE (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:89:13501)
at YE (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:63:29356)
at ek (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:89:15689)
at dM (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:61:1193)
at jL (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:63:11199)
at VL (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:63:14271)
at NL (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:63:10955)
at rk (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:89:19703)
at Zm (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:101:5586)
at t4 (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:101:2065)
at ZC (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:98:4306)
at Ua (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:98:14032)
at i4 (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:101:7427)
at ote (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:117:2761)
at ute (https://npd.kh/api/apps/line-listing/assets/index-BO4EqTec.js:117:4690)
at P (https://npd.kh/api/apps/line-listing/assets/plugin-CFnBPurL.js:2:1002)
at S
This might be because of apps not being updated. What is the version of the DHIS2 instance that you are using? If you are using a DHIS2 version older than the latest supported versions mentioned here (https://dhis2.org/releases/) then you will need to update please.
Additionally, would you please check in the App Management app that the Dashboard app, Line Listing app, Maps app, and the Data Visualizer app are all up to date. After updating these apps, please use the Data Administration app then in Maintenance view clear application cache and reload apps. You might also need to run the Analytics Tables export.
Once all that is complete, use Guest Mode in your browser and try the steps above again.