I am trying to export a document to LF Briefcase using RA 9.2. I tried to use the code sample from the SDK 9.2 documentation.
// Create BriefcaseExporter object BriefcaseExporter be = new BriefcaseExporter(CurrentSession); // Create a Laserfiche 8 briefcase. be.Version = BriefcaseFormat.Version_8_0; // Keep path data be.PreserveFolderStructure = true; // Add the Entry be.AddEntry(iEntryID); // Export be.Export(System.IO.Path.Combine(sWinPath, sEntryName + ".lfb")); // Close BriefcaseExporter be.Close();
The Briefcase (.lfb) file gets created and the size grows during the export process and my code completes without errors. But the Briefcase (.lfb) will not import. When I go to the LF Server and look at the application event viewer, I see a warning related to the export which directs me to look in the logs folder. Logged to file on the LF server is the following:
Server version: Laserfiche Content Repository Server 9.2.1 build 562
Client: RA_ExportToLFB_VCS_2010.vshost.exe (LFRA/9.2.0.315)
Briefcase name:
User: Bert2015-07-02 09:26:35.953 Error: (0xC005041A) There was an error adding the image of a page to the briefcase.
ID in repository: 2103904
Name: "Roll 020"
Page number: 360
Transport Error Code: 65544
Encoder Error Code #1: -1
Encoder Error Code #2:
Then if I try to export the same document through the client, the resulting Briefcase is about 3 times bigger and will reimport.
What is wrong with my code and why does it fail to complete the export every time?