Hi all, recently I created a Laserfiche workflow and use SDK script ( courtesy to https://answers.laserfiche.com/questions/148898/Workflow-to-Export-Document-to-Windows-Folder#166292 ) to export documents in a repository to windows folder. Most of the documents have no issues but some of the "msg" file (outlook email item) are unable to export.
The code section like this
private void ExportElectronic(DocumentInfo LFDoc, String sExportFolder) { try { System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(sExportFolder); if (!di.Exists) { di.Create(); } DocumentExporter docExporter = new DocumentExporter(); String exportPath = System.IO.Path.Combine(sExportFolder, LFDoc.Id + "." + LFDoc.Extension); docExporter.ExportElecDoc(LFDoc, exportPath); } catch (Exception ex) { WorkflowApi.TrackError(ex.Message); } }
When check the workflow result of failure exporting scenario, the exception shows
Can some one tell me what could be the problem with the documents in repository?
BTW, if I drag & drop the document from LF windows client, and then import the document back to Laserfiche, the export workflow has no issue work with the copy. So definitely not the document (msg) itself. Plus not all "msg" type documents has the problem.
Any input would be helpful. Thanks