After upgrading to 2017 update2a I've noticed our dynamic workstation groups are no longer recalculating. Clicking Details -> Preview Members shows the correct list, but clicking Recalculate Group Members or just waiting for them to recalculate on a schedule is not working. I tried deleting a dynamic group and recreating it, and now I get an error creating dynamic groups. I found the following in my services-messages.log each time I try to recalculate or create a new dynamic group:

[TRACE] [07/09/2018 13:46:45.147] [4105] [ZENService] [107] [] [DeviceAdminImpl] [] [useStoredProcedure=true] [] [] [] [ZENServer]
[TRACE] [07/09/2018 13:46:45.198] [4105] [ZENService] [107] [] [HibernateGroupSession] [] [Error message from Database procedure: Error Stage : Inserting into zQueryGroupLogEntry for ADDED Exception : Primary key for table '???' is not unique: Primary key value ('???')] [] [] [] [ZENServer]
[TRACE] [07/09/2018 13:46:45.198] [4105] [ZENService] [107] [] [HibernateGroupSession] [] [,Error message from Database procedure : Error Code:-193 Error Stage : Inserting into zQueryGroupLogEntry for ADDED Exception : Primary key for table '???' is not unique: Primary key value ('???')] [] [] [] [ZENServer]
[TRACE] [07/09/2018 13:46:45.199] [4105] [ZENService] [107] [] [HibernateGroupSession] [] [Exception while adding group membership through stored procedure:Error Code:-193 Error Stage : Inserting into zQueryGroupLogEntry for ADDED Exception : Primary key for table '???' is not unique: Primary key value ('???')] [] [] [] [ZENServer]
[TRACE] [07/09/2018 13:46:45.201] [4105] [ZENService] [107] [] [DeviceAdmin] [] [Exception in refreshQueryGroup : com.novell.zenworks.datamodel.exceptions.InternalD ataModelException: Error Code:-193 Error Stage : Inserting into zQueryGroupLogEntry for ADDED Exception : Primary key for table '???' is not unique: Primary key value ('???')
at com.novell.zenworks.datamodel.session.hibernate.Hi bernateGroupSession.updateMembers(HibernateGroupSe ssion.java:633)
at com.novell.zenworks.datamodel.services.groupings.G roupingImpl.updateMembers(GroupingImpl.java:658)
at com.novell.zenworks.datamodel.services.groupings.G roupingImpl.updateMembers(GroupingImpl.java:636)
at com.novell.zenworks.datamodel.services.devices.Dev iceAdminImpl.refreshQueryGroup(DeviceAdminImpl.jav a:1400)
at com.novell.zenworks.datamodel.services.devices.Dev iceAdminImpl.create(DeviceAdminImpl.java:386)
at com.novell.zenworks.admin.pages.common.wizards.new DynamicGroup.Controller.onFinish(Controller.java:2 00)
at com.novell.zenworks.fw.web.layout.WizardController .onWizardEvent(WizardController.java:283)
at com.novell.zenworks.fw.web.internal.layout.Wizard. verifyActionWithController(Wizard.java:736)
at com.novell.zenworks.fw.web.internal.layout.Wizard. finishButton_Click(Wizard.java:476)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.novell.web.controls.WebControl.fireEvent(WebCo ntrol.java:1977)
at com.novell.web.controls.WebControl.fireEvent(WebCo ntrol.java:1952)
at com.novell.web.controls.Button.raisePostBackEvent( Button.java:471)
at com.novell.web.controls.Page.raisePostBackEvent(Pa ge.java:1125)
at com.novell.web.controls.Page.raisePostBackEvents(P age.java:1082)
at com.novell.web.controls.Page.internalProcessReques t(Page.java:747)
at com.novell.web.controls.Page.processRequest(Page.j ava:691)
at com.novell.zenworks.fw.web.internal.layout.Index.p rocessRequest(Index.java:1384)
at com.novell.web.internal.controls.PageTag.doEndTag( PageTag.java:86)
at org.apache.jsp.jsp.index_jsp._jspService(index_jsp .java:740)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:729)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:729)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:716)
at org.apache.catalina.core.ApplicationDispatcher.pro cessRequest(ApplicationDispatcher.java:466)
at org.apache.catalina.core.ApplicationDispatcher.doF orward(ApplicationDispatcher.java:358)
at org.apache.catalina.core.ApplicationDispatcher.for ward(ApplicationDispatcher.java:318)
at com.novell.web.NJWCServlet.serviceImpl(NJWCServlet .java:98)
at com.novell.zenworks.fw.web.internal.ZENworksServle t.service(ZENworksServlet.java:88)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:729)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:207)
at com.patchlink.sapphire.web.pages.vulnerability.ses sion.HibernateSessionFilter.doFilter(HibernateSess ionFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:94)
at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:616)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:141)
at com.googlecode.psiprobe.Tomcat80AgentValve.invoke( Tomcat80AgentValve.java:41)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:88)
at com.novell.zenworks.tomcat.ZENRequestValve.synchro nousInvoke(ZENRequestValve.java:1740)
at com.novell.zenworks.tomcat.ZENRequestValve.invoke( ZENRequestValve.java:1050)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:1104)
at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.NioEndpoint$SocketProce ssor.doRun(NioEndpoint.java:1519)
at org.apache.tomcat.util.net.NioEndpoint$SocketProce ssor.run(NioEndpoint.java:1475)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$Wrapping Runnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)


I'm using the embedded sybase, checking in dbisqlc I only saw a few log entries in the zQueryGroupLogEntry. I deleted those, but still getting the same error.