Hello,
I need to migrate large number of documents from one volume to another, so I wrote a piece of code to leave it running overnight:
Dim LFVolume as New LFVolume
LFVolume = LFDB.GetVolumeByName("NEWVOL")
Dim LFDocument As New LFDocument
For Each LFID As String In LFDocIDsList
LFDocument = New LFDocument
Dim Entry As ILFEntry
Try
Entry = LFDB.GetEntryByID(LFID)
Catch ex As Exception
GoTo NextEntry
End Try
If Entry.EntryType = Entry_Type.ENTRY_TYPE_DOCUMENT Then
Try
LFDocument = Entry
DocName = LFDocument.Name
Catch ex As Exception
Entry.Dispose()
GoTo NextEntry
End Try
Try
LFDocument.Migrate(LFVolume)
Catch ex As Exception
LFDocument.Dispose()
Entry.Dispose()
GoTo NextEntry
End Try
End If
NextEntry:
Try
LFDocument.Dispose()
LFDocument = Nothing
Catch ex As Exception
End Try
Try
Entry.Dispose()
Catch ex As Exception
End Try
Next
Finish:
LFconn.Terminate()
MsgBox("Finished")
Exit Sub
But after around 70 Documents migrated, the loop starts throwing the following error:
"The current request could not be performed because there are too many existing operations running"
I'm using LFSO81 because this is the version of my server.
Could anyone help?
Thanks in advance and best regards,
Ignacio PdeA
BMB sal