Hi everyone,
We are using SDK 9.0 for our integrations, many applications use Laserfiche 9.2 as our main repository of documents, and we are going to migrate to Laserfiche 10.4.3, newer version, this will be accomplished by using briefcase to export/import data, and we are going to use SDK 9.0 to connect at two Laserfiche versions (because of data is huge and we are take many many weeks). As we have been implementing our changes using SDK 9.0, we have got this issue: "The Specified operation is not recognized" after using UpdateStatus() on Search instance, It happened randomly and I could say frequently, our code is:
using (Search _search = new Search(sesion))
{
_search.Command = consulta;
LongOperation _longOperacion = _search.BeginRun(false);
while (!_longOperacion.IsCompleted)
{
Thread.Sleep(1000);
_search.UpdateStatus();
}
SearchListingSettings _searchListingSettings = new SearchListingSettings();
_searchListingSettings.EntryFilter = EntryTypeFilter.Documents;
_searchListingSettings.AddColumn(SystemColumn.Id);using (SearchResultListing _searchResultListing = _search.GetResultListing(_searchListingSettings))
{
foreach (EntryListingRow _item in _searchResultListing)
{
this._Resultado.Add(int.Parse(_item.GetDatumAsString(SystemColumn.Id).Replace(",", string.Empty)));
}
}
}
The error is produced after executing _search.UpdateStatus(); in the posted code.
I'm sorry to ask it but, how could we fix this? Apparently, this haven´t happened before, and we haven´t changed the methods used, just the way we considered which repository to connect, and getting that session to be used in the unchanged methods.
I would appreciate any answer about it.
Regards,