You are viewing limited content. For full access, please sign in.

Question

Question

Bringing record series from cloud to cloud

asked on September 4, 2020

I've written a script to bring entries from one cloud repository to another. When bringing documents in that reside in record series (or inside record folders inside record series,) it properly brings in the documents and folder structure.

When bringing in a record series using the same code, it brings in the series but with nothing inside of it. So I figured maybe we have to use a recursive approach, bringing in the documents at the bottom level inside the records series. But when doing that, the first document comes in fine (which generates the records series at the top, since the folder structure is being brought over), and then for any document it tries to bring into that same location after that, nothing happens. The BriefcaseImporter.Import method runs, but nothing shows up after the first document.

Is there any reason why we can't bring documents over into an existing records series?

For my BriefcaseExporter from the source Cloud repository, I set PreserveFolderStructure to true and ExcludeRecordsManagementData to false.

 

BriefcaseImporter has OnDocumentConflict set to DocumentConflictStrategy.Skip (though .Overwrite didn't work either)

 

Thanks,

0 0

Replies

replied on September 22, 2022

It's my own (old) thread, but I think I figured out what the issue is when only the first document comes in. This could happen if the parent is locked down due to being cut off, for example. Bringing in the first document also brings in the parent, which is locked, so trying to bring in any other documents does not work since it counts as trying to modify the locked folder. Why this doesn't throw any sort of error I don't know, as instead it just doesn't import anything.

0 0
replied on September 22, 2022

I think in general, briefcase import will do as much as it can and produce an error report for what it failed to import. Since there isn't a way to resume from a given point, stopping at the first error isn't helpful. You can GetLogFile() on the LongOperation for details.

0 0
replied on September 23, 2022

Thanks, Brian. Is there a recommended way to handle the import of records? What I am noticing is:

 

1. If I import one doc at a time and any of the parents are already cut off, only one document imports and the rest fail because of the cutoff (cannot modify the parent)

2. If I import a record folder, and it has subfolders THEN documents, the folder structure comes in but no documents

3. If I import a record series that has record series under it, the folder structure comes in but no documents

0 0
replied on September 23, 2022

Sorry, I don't have any experience migrating records between repositories.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.