AnsweredAssumed Answered

Error while uploading document using XOG

Question asked by sonali1 on Mar 13, 2012
Latest reply on Apr 13, 2012 by nick_darlington
Hi ,

I am getting an error when I try to XOG the documents.
Error is "com.niku.union.odf.exception.ODFException: com.niku.dms.util.DMSException: Could not retrieve file from file store.
We have Clarity 12.0.5 , it is running under local system account,

We create a document in the file store first "/niku/clarity/filestore" and then read the document from there and upload it using xog (check the XOG input file).

I have provided the input and output XOG xml. It is surprising that sometimes the file does get attached but it fails most of the time.

XOG INPUT

[XOG] PSR XOG Write: <?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd">
<Header action="write" externalSource="NIKU"
objectType="customObjectInstance" version="8.1.1"/>
<customObjectInstances objectCode="ep_prj_statusrep">
<instance instanceCode="PSR00937" objectCode="ep_prj_statusrep" parentObjectCode="project">
<CustomInformation>
<ColumnValue name="code">PSR00937</ColumnValue>
<ColumnValue name="name">PSR @1</ColumnValue>
<ColumnValue name="rpt_last_updated">2012-03-13T14:28:30</ColumnValue>
<ColumnValue name="include_bulk_pdf">1</ColumnValue>
<ColumnValue name="ep_report_history">
<Documents>
<Parent documentLocation="/niku/clarity/filestore">
<Document name="PSR-14-Mar-2012-PR000462.pdf">
<Version id="-1" versionNumber="1"/>
</Document>
</Parent>
</Documents>
</ColumnValue>
</CustomInformation>
<OBSAssocs completed="false"/>
<Security/>
</instance>
</customObjectInstances>
</NikuDataBus>

XOG OUTPUT

[XOG] PSR XOG Output: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
<Object type="customObjectInstance"/>
<Status state="SUCCESS"/>
<Statistics failureRecords="1" insertedRecords="0"
totalNumberOfRecords="1" updatedRecords="0"/>
<Records>
<Record>
<KeyInformation>
<column name="ep_prj_statusrep">PSR00937</column>
</KeyInformation>
<ErrorInformation>
<Severity>FATAL</Severity>
<Description>com.niku.union.odf.exception.ODFException: com.niku.dms.util.DMSException: Could not retrieve file from file store.</Description>
</ErrorInformation>
</Record>
</Records>
</XOGOutput>
</soapenv:Body>
</soapenv:Envelope>

Outcomes