Page 1 of 1

Importing files into existing folders

PostPosted:Thu Feb 12, 2009 2:16 pm
by troyferraris
Fantastic product.
I have imported and created 10 folders in the root, named 1 to 10.
Within each of these folders I have created another 10 folders, named 1 to 10.
Within each of these folders in turn are more folders
There are therefore 1000\'s folders.
All the folders already contain files and the solutioin is working well.

NOW FOR THE PROBLEM:
I have the identical folder structure on a separate drive (file system), each folder containing files which need to be imported to OpenKM.
These are 1000\'s of files distributed thoughout this identical folder structure.

When I try importing these files by selecting the root of the folder structure on my drive and the root of OpenKM, the import fails as the folders already exist.
It appears as if the import utility does not have the ability to detect the folder already exists and then continue importing the files.

How can I get around this problem as it would take weeks to check these files in one at a time?

Re:Importing files into existing folders

PostPosted:Sat Feb 14, 2009 8:28 pm
by jllort
Which repository size are we talking ?
What size is on each folder ?

Depending your answers we\'ll try to suggest some solutions.

probably you\'ve founded a importing bug problem, really importing is thinked to creating new structure not to merging purpose ( that\'s the reason for it happens it to you ).

Re:Importing files into existing folders

PostPosted:Mon Feb 16, 2009 9:59 am
by troyferraris
If you look at the entire tree and substructures, I have aproximately 4000 folders. The import requires to bring 1 file into each of these folders.

Re:Importing files into existing folders

PostPosted:Mon Feb 16, 2009 10:01 am
by troyferraris
Is there a script I can nuse to import one file? If so, I can compile a script to bring in all the files using this as a reference.

Re:Importing files into existing folders

PostPosted:Mon Feb 16, 2009 6:38 pm
by pavila
There is a public API, so you can program a client to perform this job.

Re:Importing files into existing folders

PostPosted:Tue Feb 17, 2009 5:50 am
by troyferraris
I was more referring to a SQl / console script

Re:Importing files into existing folders

PostPosted:Tue Feb 17, 2009 5:50 am
by troyferraris
Could we add this issue to the buglist?

Re:Importing files into existing folders

PostPosted:Thu Feb 19, 2009 7:51 pm
by pavila
Actually I don\'t understand the issue. Can you post a (detailed) use case?

Re:Importing files into existing folders

PostPosted:Fri Feb 20, 2009 5:14 am
by troyferraris
Please refer to the first entry of this thread.
1. Our entire folder structure of 3000 folders was successfully imported with all their files.
2. Later we discovered that there was a critical files missing from each of our folders that we imported.
3. We have the identical folder structure with all missing files on a local drive and need to run the import again to add these files to OpenKM.
4. The import fails because it is unable to import if the folders already exist.

Re:Importing files into existing folders

PostPosted:Mon Feb 23, 2009 12:55 am
by pavila
The problem I that the import utility from OpenKM didn\'t import all the files? Are these files of the same type?

Re:Importing files into existing folders

PostPosted:Mon Feb 23, 2009 5:40 am
by troyferraris
It was our error, when compiling the folders on the disk for import, we forgot to include these files.

Re:Importing files into existing folders

PostPosted:Fri Feb 27, 2009 9:35 am
by pavila
But this is not an issue. You have three options:

1.- Delete all the imported documents & folders, complete all the forgotten documents and import them again.

2.- Upload the forgotten documents individually to OpenKM.

3.- Make a webservices client to perform this job.