2.28 - Invalid reference [GROUPID] (UserGroup) on object chartName [CHARTID] (Chart) for association `userGroupAccesses`

Hello,

I’ve upgraded to version 28 and I am facing to this error:

When a user wants to save a chart, he gets the 409 conflict error. When regarding on the console I found the following error:

  1. errorCode:“E5002”
  2. mainKlass:“org.hisp.dhis.chart.Chart”
  3. message:“Invalid reference [GROUPID] (UserGroup) on object chartName [CHARTID] (Chart) for association userGroupAccesses.”

The user has all the authorities except the ALL authority.

The dashboard and its items are shared with the userGroup.

The user is member on the userGroup.

The server log says however, the updated was done

  • INFO 2018-04-09 10:25:03,466 (username) Import:Start (DefaultMetadataImportService.java [ajp-bio-8010-exec-13])

  • INFO 2018-04-09 10:25:03,550 ( username

) Import:Preheat[REFERENCE] took 0.08 seconds (DefaultPreheatService.java [ajp-bio-8010-exec-13])

  • INFO 2018-04-09 10:25:03,579 ( username

) Import:Validation took 0.00 seconds (DefaultObjectBundleValidationService.java [ajp-bio-8010-exec-13])

  • INFO 2018-04-09 10:25:03,579 ( username

) Import:Done took 0.11 seconds (DefaultMetadataImportService.java [ajp-bio-8010-exec-13])

Do you have any idea/suggestion ?

Thank you so much !

Ramón Jiménez Pomareta

Hello again,

As complementary info the chart is shared with, lets say, the groups A, B, C and D. (write/read for A and B, only read for C and D).

The group C manages the group D.

The group B manages groups C and D.

The group A manages B, C and D.

I discovered the following facts:

The user is able to modify and save the chart if he is in group A, but not if he is in the group B, C and/or D.

I don’t think we could reduce the sharing to only 2 groups. Any suggestions ?

Thanks again !

Ramón Jiménez Pomareta

···

2018-04-09 10:26 GMT+02:00 Ramón José Jiménez Pomareta dhis2@pomareta.ch:

Hello,

I’ve upgraded to version 28 and I am facing to this error:

When a user wants to save a chart, he gets the 409 conflict error. When regarding on the console I found the following error:

  1. errorCode:“E5002”
  2. mainKlass:“org.hisp.dhis.chart.Chart”
  3. message:“Invalid reference [GROUPID] (UserGroup) on object chartName [CHARTID] (Chart) for association userGroupAccesses.”

The user has all the authorities except the ALL authority.

The dashboard and its items are shared with the userGroup.

The user is member on the userGroup.

The server log says however, the updated was done

  • INFO 2018-04-09 10:25:03,466 (username) Import:Start (DefaultMetadataImportService.java [ajp-bio-8010-exec-13])
  • INFO 2018-04-09 10:25:03,550 ( username

) Import:Preheat[REFERENCE] took 0.08 seconds (DefaultPreheatService.java [ajp-bio-8010-exec-13])

  • INFO 2018-04-09 10:25:03,579 ( username

) Import:Validation took 0.00 seconds (DefaultObjectBundleValidationService.java [ajp-bio-8010-exec-13])

  • INFO 2018-04-09 10:25:03,579 ( username

) Import:Done took 0.11 seconds (DefaultMetadataImportService.java [ajp-bio-8010-exec-13])

Do you have any idea/suggestion ?

Thank you so much !

Ramón Jiménez Pomareta

1 Like

Hi Ramón, did you ever resolve this? I’m getting the same error in 2.30. Dashboard has public read access, Group A has read/write and Group B has read only. If a user in group A tries to edit the dashboard, the same error appears “Invalid reference [GROUPID] (UserGroup) on object dashboardname [DASHBOARDID] (Chart) for association userGroupAccesses .”

1 Like

I think I found the resolution: At least in my case, this was resolved by making sure Group A had read access to Group A itself.

1 Like