Message Boards

"No group exists with the key" when deleting user

Micael Ericsson, modified 3 Years ago.

"No group exists with the key" when deleting user

Regular Member Posts: 169 Join Date: 12/11/12 Recent Posts
In our Liferay 6.2 portal, we have a cleaning hook that deletes old users. I recently found out that this has aborted for a while, leaving a large amount of old users in the system. When deleting user with id 41647466 the liferay.log says "NoSuchGroupException: No group exists with key: {companyId: 20155, className: 20191, classPK: 42392501}..". I can resolve companyId and className and they are correct. classPK I guess is userId from Users- table and the default user, which exists. And there is nothing in Group_ table matching these data. When reading other similar posts and the above analyze my conclusion is that the default user has been deleted and with it the group. Then the default users have been created somehow but not the matching group. Correct analyze?What is the best solution to solve this? How to create a new group corresponding to the default user?