Trace: segment must have only one equipment reference

Testing the track and trace functions, I got:

“Segment must have only one equipment reference before a segment can begin.”

I understand that this is a known bug/‘feature’?

Problem I am having is after I remove any additional “equipment references” in the segment definitions, the error still remains. I restarted the production module, the trace module and even the entire gateway yet the error remains, even with now only 1 equipment object being listed.

Is there any workaround to get past that error? It seems it is triggered by stale data. Any way to clear that? Do I have to delete and rebuild the segment?

Does this log help?

INFO [PMISegmentSelector-AWT-EventQueue-2] createModel executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line
INFO [PMISegmentSelector-AWT-EventQueue-2] setResponseSegment() executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line, response segment UUID null
INFO [PMISegmentSelector-AWT-EventQueue-2] fireSelectorChangeEvent executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line
INFO [PMISegmentSelector-AWT-EventQueue-2] fireSelectorChangeEvent executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line
INFO [PMISegmentSelector-DesignerExecEngine-thread-1] notifySessionListener executed NotificationMessage message: mesoperstate, itemPath: [global]\BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line, data: fae1df9c-74a2-4c8f-b54c-3eb8c58175de
INFO [PMISegmentSelector-DesignerExecEngine-thread-1] notifySessionListener executed for equipmentPath [global]\BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line
INFO [PMISegmentSelector-AWT-EventQueue-2] createModel executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line
INFO [PMISegmentSelector-AWT-EventQueue-2] setResponseSegment() executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line, response segment UUID null
INFO [PMISegmentSelector-AWT-EventQueue-2] fireSelectorChangeEvent executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line
INFO [PMISegmentSelector-AWT-EventQueue-2] fireSelectorChangeEvent executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line
INFO [PMISegmentSelector-AWT-EventQueue-2] setResponseSegment() executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line, response segment UUID 4b3d5b6d-dd39-46e1-896e-e14056ec085c
INFO [PMISegmentSelector-AWT-EventQueue-2] fireSelectorChangeEvent executed for equipmentPath BugCorp\Test_Site_1\Cassette Build Area\Cell Feeder Line
ERROR [ProductionRPCProxy-AWT-EventQueue-2] Failed: beginSegment
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Segment must only have one equipment reference before a segment can begin.
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:321)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:295)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:252)
at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.moduleInvoke(GatewayInterface.java:788)
at com.sepasoft.production.rpc.ProductionRPCProxy.invoke(ProductionRPCProxy.java:79)
at com.sepasoft.production.rpc.ProductionRPCProxy.beginSegment(ProductionRPCProxy.java:932)
at com.sepasoft.trace.components.PMISegmentSelector.beginSegment(PMISegmentSelector.java:479)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:186)
at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:204)
at org.python.core.PyObject.call(PyObject.java:387)
at org.python.core.PyObject.call(PyObject.java:391)
at org.python.core.PyMethod.call(PyMethod.java:109)
at org.python.pycode._pyx1.f$0(event:actionPerformed:1)
at org.python.pycode._pyx1.call_function(event:actionPerformed)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1275)
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:568)
at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:561)
at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.runActions(ActionAdapter.java:170)
at com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter.invoke(ActionAdapter.java:265)
at com.inductiveautomation.factorypmi.application.binding.action.RelayInvocationHandler.invoke(RelayInvocationHandler.java:55)
at com.sun.proxy.$Proxy21.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.Exception: Segment must only have one equipment reference before a segment can begin.
at com.sepasoft.production.mes.manager.MESOperationsManager.beginSegment(MESOperationsManager.java:683)
at com.sepasoft.production.mes.manager.MESOperationsManager.beginSegment(MESOperationsManager.java:675)
at com.sepasoft.production.gateway.ProductionGatewayHook$ProductionRPCHandler.beginSegment(ProductionGatewayHook.java:2362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(null)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(null)
at java.lang.reflect.Method.invoke(null)
at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.ModuleInvoke.invoke(ModuleInvoke.java:123)
at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:346)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:85)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:696)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:526)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:453)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:459)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:280)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229)
at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
at java.lang.Thread.run(null)