Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing text document into Livelink

Status
Not open for further replies.

sunny1518

Programmer
Sep 3, 2012
27
US
Hi All,

I am trying to import a text document into livelink by using an XML. Can you guys share a sample xml for importing the text document. I was able to import the folder by using the below xml and trying to create a similar xml for text document.

<import>
<node action='create' type='folder' >
<id>1</id >
<description clear='True' ></description >
<location>Enterprise:UK:London</location >
<modified>20110921194921</modified >
<title>Budget</title >
<created>20110921125630</created >
<createdby>Admin</createdby >
<acl group='XX' permissions='110000000' ></acl >
<acl group='YY' permissions='111011111' ></acl >
<acl basegroup='DefaultGroup' permissions='110000000' ></acl >
<acl baseowner='Admin' permissions='110000000' ></acl >
<acl action='remove' standard='world' ></acl >
</node>
</import>
 
I hope you mean document subtype=144 and not 145
in the OI guide all those are shown with examples.At the minimum you need a txt file with a file path which the livelink server service can see.
Here's one that would put a file inside that folder sitting on the livelink server's E drive,it can be any UNC as well.
If you have configured a upload directory in your livelink server chances are that you would need a patch from OT to make OI see files where you put them.
Code:
<import>
<node action='create' type='document' >
<id>1</id >
<description clear='True' ></description >
<location>Enterprise:UK:London:Budget</location >
<modified>20110921194921</modified >
<title>My Text File</title >
<created>20110921125630</created >
<createdby>Admin</createdby >
<acl group='XX' permissions='110000000' ></acl >
<acl group='YY' permissions='111011111' ></acl >
<acl basegroup='DefaultGroup' permissions='110000000' ></acl >
<acl baseowner='Admin' permissions='110000000' ></acl >
<acl action='remove' standard='world' ></acl >
<file><![CDATA[E:\csdata\opentext\exporter\mytextfile.txt]]></file>
<mime><![CDATA[application/octet-stream]]></mime>
</node>
</import>

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Hi appnair,

Thanks for the information. I am new to livelink, in my previous project I have an experience of migrating the documents(not the text documents), there we were placing the XML files in ICF directory and they get imported.

Here in this text document import, if I place the document files in staging directory and mention the location of these files in the xml which is placed in ICF directory, will that do or do I need to configure an upload directory as mentioned by you.

If an upload directory need to be configured, can you please share the steps for it.

 
My friend look at this line
<file><![CDATA[E:\csdata\opentext\exporter\mytextfile.txt]]></file>
what that tells me is when the OI oscript code runs it will pull the file from that place.
In some organizations when livelink is configured the admin will go to the server administration place and configure
a upload directory.Assume your org says that C:\livelinkupload\ is that.In this case regardless of wherever you put the
OI file the process cannot access that file because of that obvious reason.
Either you have to leave the configuration in livelink blank,or ask for a patch that OT will give you that corrects the situation I do not know what ICF is
but OI is a very simple module.It has a working directory,it has a control directory and it has a logs directory.Your job is put the XML files in the control directory.
When oscript parses the node info when it comes times to import the file it needs to get it.so if you put the file in a server where the livelink server cannot get it all will fail.

Try to understand how livelink uploads a document.You send a file from your computer to livelink's webserver or the upload directory.Livelink picks up that file and creates it.That is all.

Try to get the OI/OE admin/user guide plently of examples in there

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top