Clarity: XOG read of documents using OR criteria fails.

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

Description:

Details:

XOG-read of documents using OR criteria fails.

Sample 1:

<?xml version="1.0" encoding="UTF-8"?>   
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">   
<Header version="12.0.3" action="read" objectType="document" externalSource="NIKU">   
<args name="documentLocation" value="g:\XOG_File2" />   
</Header>   
<DocumentQuery>   
<Filter name="parentObjectID" criteria="EQUALS">5028728</Filter>   
<Filter name="parentObjectType" criteria="EQUALS">Projects</Filter>   
</DocumentQuery>   
</NikuDataBus>

Sample 2:

<?xml version="1.0" encoding="UTF-8"?>   
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">   
<Header version="12.0.3" action="read" objectType="document" externalSource="NIKU">   
<args name="documentLocation" value="g:\XOG_File2" />   
</Header>   
<DocumentQuery>   
<Filter name="parentObjectID" criteria="OR">5028728, 5028728</Filter>   
<Filter name="parentObjectType" criteria="EQUALS">Projects</Filter>   
</DocumentQuery>   
</NikuDataBus>

The error:

<Description>XOG-4001: Failed to export 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) 

Steps to Recreate:

  1. Create a new project and add a new document to the Collaboration Tab

    1. Go to the Project List and create a new project "Proj1" and click "Save"

    2. Go to the Collaboration Tab and add a new document

  2. Create a new project and add a new document to the Collaboration Tab

    1. Go to the Project list and create a new project "Proj2" and click "Save"

    2. Go to the Collaboration Tab and add a new document

  3. XOG out the document from proj1 (Sample 1)

  4. XOG out the documents from proj1 and proj2 using OR criteria (Sample 2)

Expected Result: The XOG should complete without any error

Actual Result: The XOG out fails with error java.lang.Exception: XOG-4000: Parent Object was not found;

Solution:

Workaround:

  1. Create a gel script that runs xog for each project separately and run it using a process.

    OR

  2. XOG each project individually.

Status / Resolution:


This issue has been documented as CLRT-50875 and is taken as enhancement for future release.

Keywords: CLARITYKB, CLRT-50875, clarity12open, XOG, documents, Collaboration tab, XOG-4000, Parent Object was not found, project, document manager