Clarity: XOG write Risks fails with a FATAL error - XOG-6010 and XOG-6014

Document ID : KB000050200
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

We are attempting to XOG existing risks from an existing system into a fresh installation system.

Some of the Risks are written successfully, but other records are not written due to the following error messages in the XOG output:

   <Severity>FATAL</Severity>   
   <Description>XOG-6010: Failed to import risk/issue/change request.</Description>   
   <Exception><![CDATA[   
   java.lang.Exception: XOG-6014: Assigned To in the response strategy does not exist in the system.            
   at com.niku.xog.util.XOGContinueHandler.postProcess(XOGContinueHandler.java:36)   
   at com.niku.xql2.handlers.BaseHandler.postProcess(BaseHandler.java:48)   
   at com.niku.xql2.XQLVisitor.postProcess(XQLVisitor.java:1355)   
   at com.niku.union.xml.dom.DOMWalker.postProcess(DOMWalker.java:210)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:94)   
   at com.niku.union.xml.dom.DOMWalker.traverse(DOMWalker.java:51)   
   at com.niku.xql2.handlers.LoopHandler.processObject(LoopHandler.java:161)   
   at com.niku.xql2.handlers.LoopHandler.preProcess(LoopHandler.java:91)   
   at com.niku.xql2.XQLVisitor.preProcess(XQLVisitor.java:1342)   
   at com.niku.union.xml.dom.DOMWalker.preProcess(DOMWalker.java:194)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:74)   
   at com.niku.union.xml.dom.DOMWalker.traverse(DOMWalker.java:51)   
   at com.niku.xql2.handlers.TryHandler.preProcess(TryHandler.java:50)   
   at com.niku.xql2.XQLVisitor.preProcess(XQLVisitor.java:1342)   
   at com.niku.union.xml.dom.DOMWalker.preProcess(DOMWalker.java:194)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:74)   
   at com.niku.union.xml.dom.DOMWalker.traverse(DOMWalker.java:51)   
   at com.niku.xql2.handlers.LoopHandler.processObject(LoopHandler.java:161)   
   at com.niku.xql2.handlers.LoopHandler.preProcess(LoopHandler.java:91)   
   at com.niku.xql2.XQLVisitor.preProcess(XQLVisitor.java:1342)   
   at com.niku.union.xml.dom.DOMWalker.preProcess(DOMWalker.java:194)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:74)   
   at com.niku.union.xml.dom.DOMWalker.traverse(DOMWalker.java:51)   
   at com.niku.xql2.handlers.LoopHandler.processObject(LoopHandler.java:161)   
   at com.niku.xql2.handlers.LoopHandler.preProcess(LoopHandler.java:91)   
   at com.niku.xql2.XQLVisitor.preProcess(XQLVisitor.java:1342)   
   at com.niku.union.xml.dom.DOMWalker.preProcess(DOMWalker.java:194)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:74)   
   at com.niku.union.xml.dom.DOMWalker.traverse(DOMWalker.java:51)   
   at com.niku.xql2.handlers.LoopHandler.processObject(LoopHandler.java:161)   
   at com.niku.xql2.handlers.LoopHandler.preProcess(LoopHandler.java:91)   
   at com.niku.xql2.XQLVisitor.preProcess(XQLVisitor.java:1342)   
   at com.niku.union.xml.dom.DOMWalker.preProcess(DOMWalker.java:194)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:74)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:92)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:92)   
   at com.niku.union.xml.dom.DOMWalker.traverse(DOMWalker.java:36)   
   at com.niku.xog.service.XOGXBLHandler.processXBL(XOGXBLHandler.java:245)   
   at com.niku.xog.service.XOGXBLHandler.process(XOGXBLHandler.java:151)   
   at com.niku.xog.service.ObjectHandler.processRequest(ObjectHandler.java:167)   
   at com.niku.xog.handler.XOGProcessHandler.postProcess(XOGProcessHandler.java:44)   
   at com.niku.xql2.XQLVisitor.postProcess(XQLVisitor.java:1355)   
   at com.niku.union.xml.dom.DOMWalker.postProcess(DOMWalker.java:210)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:94)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:92)   
   at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:92)   
   at com.niku.union.xml.dom.DOMWalker.traverse(DOMWalker.java:36)   
   at com.niku.xql2.XQLProcessor.process(XQLProcessor.java:239)   
   at com.niku.xql2.XQLProcessor.process(XQLProcessor.java:280)   
   at com.niku.xql2.binding.ServiceControlBindingXql.processFile(ServiceControlBindingXql.java:412)   
   at com.niku.xql2.binding.ServiceControlBindingXql.getDocument(ServiceControlBindingXql.java:277)   
   at com.niku.xql2.binding.ServiceControlBindingXql.processRequest(ServiceControlBindingXql.java:161)   
   at com.niku.union.service.ServiceControlImpl.processRequest(ServiceControlImpl.java:760)   
   at com.niku.union.service.ServiceControlImpl.processRequest(ServiceControlImpl.java:214)   
   at com.niku.union.web.WebServiceAdapter.processRequest(WebServiceAdapter.java:196)   
   at com.niku.union.web.PortletController.processServiceRequest(PortletController.java:1371)   
   at com.niku.union.web.PortletController.processAuthorizedPortlet(PortletController.java:891)   
   at com.niku.union.web.PortletController.processPageActionRequest(PortletController.java:385)   
   at com.niku.union.web.PortletController.processRequest(PortletController.java:160)   
   at com.niku.union.web.WebActionController.processAction(WebActionController.java:1090)   
   at com.niku.union.web.WebActionController.processRequest(WebActionController.java:170)   
   at com.niku.union.web.WebControlServlet.service(WebControlServlet.java:322)   
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)   
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)   
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)   
   at com.niku.union.web.filter.GZIPResponseFilter.doFilter(GZIPResponseFilter.java:121)   
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)   
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)   
   at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:29)   
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)   
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)   
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)   
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)   
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)   
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)   
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)   
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)   
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)   
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)   
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)   
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)   
   at java.lang.Thread.run(Thread.java:619)   
   ]]></Exception>     

Solution:

WORKAROUND:
If you use the XOG 'risk_read' action in versions prior to Clarity 12.0.5, you will encounter a known issue (CLRT-24492) where the XOG read output generates the 'Resource ID' in the XOG output file. If this value is different than the Resource 'User Name', the XOG write action will fail with that message.

The records that were written successfully were for resources where the Resource User Name value and the Resource ID value are identical.

The failures occurred for resources where the Resource User Name value and the Resource ID value are not identical.

Be sure that the XOG write file contains the 'User Name' value in the Response Strategy 'assignedTo' attribute.

For Example, if you have Risks that are assigned to Resource99:

Figure 1

If the XOG output shows the 'assignedTo' value as 'resource_99' (Resource ID)

<responseStrategies>
<responseStrategy assignedTo=" resource_99 " description="This is a test. User Name = resource99 ... Resource id = resource_99"/>
</responseStrategies>

Change the value in the XOG file to the User name 'resource99'

<responseStrategies>
<responseStrategy assignedTo=" resource99 " description="This is a test. User Name = resource99 ... Resource id = resource_99"/>
</responseStrategies>

STATUS/RESOLUTION:
Resolved in Clarity 12.0.5

Keywords: CLARITYKB, CLRT-24492, clarity8open, clarity12resolved, clarity1205resolved.