AnsweredAssumed Answered

Q - XOG documnets from one environment to another - URGENT! :-)

Question asked by Keri Taylor on Oct 4, 2013
Latest reply on Oct 4, 2013 by Keri Taylor
Hi,

I need some help in XOGging the documnets (collab tab) from one environment to another. There were a few projects that were deleted or rather partially went through the delete process.. so it didn'tremove everything, however, i need to copy my backup (which was done to my other environment and have the complete backup). Now i am xogging in the project. However, i get an error on my collaboration tab now.

environment 1
<?xml version="1.0"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
<Header version="7.5" action="read" objectType="document"
externalSource="NIKU">
<args name="documentLocation" value="c:\xog/test/documentXogLocation"/>
</Header>
<DocumentQuery>
<Filter name="parentObjectID" criteria="EQUALS">5023428</Filter>
<Filter name="parentObjectType" criteria="EQUALS">Projects</Filter>
</DocumentQuery>
</NikuDataBus>
I have read and succeeded. I have a write file:
<?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_document.xsd">
    <Header action="write" externalSource="NIKU" objectType="document" version="12.1.0.5840"/>
    <Documents>
        <Parent documentLocation="c:\xog/test/documentXogLocation" parentObjectId="5023428" parentObjectType="Projects">
            <Folder allowNonParticipants="1" hasAllParticipants="1" name="Supporting Documentation">
                <Folder allowNonParticipants="1" hasAllParticipants="1" name="02. Real Estate"/>
                <Folder allowNonParticipants="1" hasAllParticipants="1" name="01. Adminstration &amp; Correspondence">
                    <Folder allowNonParticipants="1"
                        hasAllParticipants="1" name="01.7 Charter"/>
                    <Folder allowNonParticipants="1"
                        hasAllParticipants="1" name="01.3 Reports"/>
                    <Folder allowNonParticipants="1"
                        hasAllParticipants="1" name="01.2 Correspondence"/>
                    <Folder allowNonParticipants="1"
                        hasAllParticipants="1" name="01.1 Meetings"/>
                    <Folder allowNonParticipants="1"
                        hasAllParticipants="1" name="01.9 Approvals">
                        <Document allowNonParticipants="1"
                            fileCreatedDate="2011-11-07T00:00:00"
                            hasAllParticipants="1" language="en"
                            name="350 Cal Chiller Plant Replacement - PRD - 11-4-11.xls"
                            numCheckoutDays="1" status="APPROVED" versioningEnabled="1"> 
***
***
***        </Parent>
    </Documents>
    <XOGOutput>
        <Object type="document"/>
        <Status state="SUCCESS"/>
        <Statistics failureRecords="0" insertedRecords="0"
            totalNumberOfRecords="138" updatedRecords="0"/>
        <Records/>
    </XOGOutput>
</NikuDataBus>
Now i get the error when i xog into the other server.

environment 2
<?xml version="1.0" encoding="UTF-8"?>
<XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
    <Object type="document"/>
    <Status state="FAILURE"/>
    <Statistics failureRecords="1" insertedRecords="0"
        totalNumberOfRecords="1" updatedRecords="0"/>
    <Records>
        <Record>
            <KeyInformation/>
            <ErrorInformation>
                <Severity>FATAL</Severity>
                <Description>XOG-4002: Failed to import documents.</Description>
                <Exception><![CDATA[
java.lang.Exception: XOG-4000: Parent Object was not found; The parent information provided is incorrect.

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.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.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:857)

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>
            </ErrorInformation>
        </Record>
    </Records>
</XOGOutput>
I am assuming that the read wrote to the environment 1 location ("c:\xog/test/documentXogLocation"). Do i need to copy that? or not sure what i need to do here.

Any help provided will be much appreciated.

Thanks,
Keri

Outcomes