When I run the code below I am getting a Laserfiche.RepositoryAccess.MalformedDataException. The folder we are searching contains about 4000 documents.
var settings = new SearchListingSettings(); settings.AddColumn(SystemColumn.Id); settings.AddColumn(SystemColumn.Name); var search = new Search(session); search.Command = "({LF:LOOKIN=\"" + proxyLocation + "\"})"; search.FuzzyType = FuzzyType.None; search.Run(); var listing = search.GetResultListing(settings, numberPreload); for (var row = 1; row <= listing.RowCount; row++) { var id = (int)listing.GetDatum(row, SystemColumn.Id);
If numberPreload contains a value higher than the total number of documents in the folder then I get the error on this line
var listing = search.GetResultListing(settings, numberPreload);
If I set numberPreload lower than the total number of documents in the folder I get the error on this line.
var id = (int)listing.GetDatum(row, SystemColumn.Id);
What's interesting (to me anyway) is that I always get the error on the row that is 2 higher than the value of numberPreload. If numberPreload = 1 then I get the error on row 3. If numberPreload = 100 then I get the error on row 102.
First of all, can anybody help me determine what is causing this issue?
And secondly, I am assuming the reason I get this error is because the results being returned is not XML (or whatever format the library is expecting). Is there anyways I can log the actual results coming back from server so I can see what is being returned?
Also, I tried using FI.OpenFolderListing() with the same results.
I am using version 10.3.0.242 of the SDK (Laserfiche.RepositoryAccess.dll and Laserfiche.DocumentServices.dll)
AHHHHH....Problem only occurs when I use .NET 6.0! *sigh*