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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Importer - XML file

Status
Not open for further replies.

alexsandro9

Programmer
Jul 13, 2013
20
IT
hello,
I'm a new programmer and i'm writing to ask you to help with Livelink.

in the "configure server parameteres" i have just set:

Character Set: UTF-8
Upload Directory: D:\LL_Archive\ImpExp\upload

and i have create a file XML with the next instructions. (I removed the attributes and categories for your convenience)

<?xml version="1.0" encoding="UTF-8"?>
<import>
<node action="create" type="compounddoc">
<location>Enterprise:Direzione</location>
<title>Audit</title>
<file>Rapporto.doc</file>
<acl permissions="110000000" standard="basegroup"/>
<createdby>Admin</createdby>
<created>20130708</created>
<modified>20130708</modified>
</node>
</import>


i put the file "Rapporto.doc" in the upload directory but i have a problem.

after the upload with Object Importer i'm can be able to create the compound document (and all category and attributes) but I don't attach the file "Rapporto.doc".

where is the mistake?

thankss
 
In your case you do not have where the file is.I would drop a file in this place

Upload Directory: D:\LL_Archive\ImpExp\upload\Rapporto.doc
Typically the livelink server user is processing the user usually the
service user who runs the lvelink service,so that user needs complete access to the file

I have always configured my OI servers without a upload not to confuse livelink.My understanding is for OI installs
who have their livelink servers configured with a UPLOAD other than webserver temp you need a patch.

With a upload directory configured livelink cure code will reject files from anyplace that come from any place else

syntax will look like this for UNC path

see this sample for a doc that gets uploaded to livelink

<node action="create" type="document">
<acl group="SYSLL_SCAN" permissions="111011101"></acl>
<acl basegroup=" LES Admins &amp; Developers" permissions="111111111"></acl>
<acl action="remove" standard="owner"></acl>
<acl action="remove" standard="world"></acl>
<category name="Livelink Categories:Financial:Vendor Correspondence">
<attribute name="Vendor Number"><![CDATA[22222222]]></attribute>
<attribute name="Vendor Name"><![CDATA[New Vendor Test]]></attribute>
<attribute name="Document Type"><![CDATA[Miscellaneous]]></attribute>
<attribute name="SAP Document Number"><![CDATA[434343]]></attribute>
<attribute name="Invoice Number"><![CDATA[66666666]]></attribute>
<attribute name="Invoice Number"><![CDATA[77777777]]></attribute>
<attribute name="Invoice Number"><![CDATA[88888888]]></attribute>
<attribute name="Capture Date"><![CDATA[20100307]]></attribute>
<attribute name="Processed Date"><![CDATA[20100607]]></attribute>
<attribute name="Comments"><![CDATA[Test VC Form]]></attribute>
</category>
<created><![CDATA[20101007130219]]></created>
<createdby><![CDATA[vcctest1]]></createdby>
<description clear="true"></description>
<file><![CDATA[C:\Livelink Migration\0000000157]]></file>
<location><![CDATA[Enterprise:Finance:Vendor Correspondence:22222222:Miscellaneous]]></location>
<mime><![CDATA[application/vnd.openxmlformats-officedocument.wordprocessingml.document]]></mime>
<modified><![CDATA[20101007130219]]></modified>
<title><![CDATA[22222222-New Vendor Test-Oct-07-2010 13-02-18]]></title>
</node>

The reason why code works is because when the file tag is encountered the livelink code will look for a file called
C:\Livelink Migration\0000000157 see how I specify the MIME in anaothert place.The drive ca be replaced by a UNC as well




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
 
thanks for the reply but I did not understand what to do exactly,

i must work with upload directory and i must change my file in this way.

the problem is that i don't have total access to the file? and the upload should be done to user inside livelink? i work in a remote machine.

i modified the file add mime type but the problem remain
<file>Rapporto.doc</file>
<mime>application/msword</mime


i read your example but i do not know how change my file to make it work.

do i need to configure livelink?

please help me

thanks
 
Take this OFF
n the "configure server parameteres" i have just set:

Character Set: UTF-8
Upload Directory: D:\LL_Archive\ImpExp\upload\ Leave it blank.


Then put your files in a UNC path

<file><![CDATA[\\myserversomewhereintheworld\Livelink Migration\0000000157]]></file>

then on the box of livelink server login as the domain user of livelink and type in the RUN place
\\myserversomewhereintheworld\Livelink Migration\0000000157 and see if you can see.

Now run

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
 
i have set OFF the "configure server parameteres"
Character Set: BLANK
Upload Directory: BLANK

and add the path in the file but the system show me a error popup like this

[sup]The import file C:\\Windows\TEMP\s778.2aA08 does not exist[/sup]

my import file is the next:

<?xml version="1.0" encoding="UTF-8"?>
<import>
<node type="compounddoc" action="create">
<location>Enterprise:Documentale</location>
<title>Audit</title>
<file>D:\LL_Archive\ImpExp\upload\Rapporto.doc</file>
<acl standard="basegroup" permissions="110000000"/>
<createdby>Admin</createdby><created>20130708</created>
<modified>20130708</modified>
</node>
</import>

why the system find in the C: whan i said a different path (D:\\...)?

 
How does the livelink server know this path ?
<file>D:\LL_Archive\ImpExp\upload\Rapporto.doc</file>
Does the livelink server have a D drive or is it your computer that has the D drive?
Did you put it there manually?
You are making your life more complicated. Just rule out problems by just doing an import of a file and not a CD until you are past the
Initial set up troubles.
The OI has a sample file to do an import use that example First put the XML file in the OI control folder
Which you configured Then place the files where NOT YOU but the livelink server can SEE(TOUCH) it.
Run it
Are you using INRTERACTIVE or agent running. If you are using the interactive RH then the file can be anywhere you are just trying to upload the
file to the webserver temp. This tells me C:\\Windows\TEMP\s778.2aA08 that your action cannot be completed because you are running your
livelink service as 'Local System' and not a Administrator in that machine so, the file cannot be uploaded here. All livelink people run that
service as a Domain user added to the Administrator group. For testing create a user who can be added as an administrator or
open up windows C:\\Windows\TEMP and put 'EVERYONE' full control there. It is very unsafe

You are missing simple configuration things and common sense as I think you are embarking new just do it with a little bit of thought and leniency
Servers are involved, web server is involved etc...



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
 
i'm working in a remote machine and in this remote machine there is the directory D: where i put the file inside


i have a administrator user in the livelink-OpenText but not in the virtual machine

infact i can go in admin.index to try manual object import

but i can't go in C:\\Windows\TEMP


How i can see which plase Livelink server can SEE(TOUCH)??


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top