cancel
Showing results for 
Search instead for 
Did you mean: 

Streaming bulk import - file versioning

dumont
Champ in-the-making
Champ in-the-making
Hi,

I'm having issues understanding how bulk import works. I've tried the following steps:

1. Import D:/Alfresco/v1/file.txt to /Company Home/Test folder using streaming import
The file is imported as expected, having only one version 1.0
2. Then I tried importing v2 of the file D:/Alfresco/v2/file.txt.v2  to the same target folder, with "Replace existing" checked
Here I'm expecting version 1 (head version) to be replaced by version 2, but the actual result is that the version and file content stays the same.

Am I doing something wrong? In all the examples I've come across all versions are imported at the same time. For example, a folder versions with:
file.txt, file.txt.v2 and with a single import both versions are imported.

Is there any documentation and examples you can help me with on how streaming import works with or without "Replace existing" checked?

Thank you.
1 REPLY 1

hardik1512
Star Contributor
Star Contributor
Hello,

Here is the official documentation of Bulk Import tool
http://docs.alfresco.com/5.0/concepts/Bulk-Import-Tool.html

As stated in http://docs.alfresco.com/5.0/concepts/bulk-import-via-the-ui.html
The Replace existing files option indicates whether to replace nodes that already exist in the repository (checked) or skip them (unchecked). Note that if versioning is enabled for a node, the node's existing content and metadata is preserved as the prior version and the new content and/or metadata will be written into the head revision.

Which means if you have file.txt with two versions and you import another file.txt in same path with Replace existing files checked, it will create new version(may be 2.1 or 3.0).

I think its not possible to import only version file as you tried in step 2. You should give file name as file.txt only and check Replace existing files. Import tool will create new version accordingly.

Hope this helps.