From aeb64e24795eb78fceefc9a93ff154726c0eed1a Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 12 Sep 2012 12:56:00 +0000 Subject: [PATCH] --- PROMS/DataLoader/DocVersions.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PROMS/DataLoader/DocVersions.cs b/PROMS/DataLoader/DocVersions.cs index b19d1441..36737338 100644 --- a/PROMS/DataLoader/DocVersions.cs +++ b/PROMS/DataLoader/DocVersions.cs @@ -36,7 +36,8 @@ namespace DataLoader { long lTime = DateTime.Now.Ticks; string pth = docver.Title; - + // if the Title is empty, return because this docversion has already been migrated. + if (pth == null || pth == "") return TimeSpan.FromTicks(lTime); if (!File.Exists(pth + @"\set.dbf") || !File.Exists(pth + @"\curset.dat")) return new TimeSpan(); // Open connection OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + pth + ";Extended Properties=dBase III;Persist Security Info=False"); if (convertProcedures) @@ -45,10 +46,10 @@ namespace DataLoader // The INF files contain a path to a corresponding NDX file - had data with bat NDX path DeleteINFFiles(pth); _OutTran = new OutsideTransition(cn); - frmMain.AddInfo("Before MigrateROFST{0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll); + frmMain.AddInfo("Before MigrateROFST {0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll); MigrateROFST(pth, docver); GC.Collect(); - frmMain.AddInfo("After MigrateROFST{0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll); + frmMain.AddInfo("After MigrateROFST {0}\r\n{1}", GC.GetTotalMemory(true), VEPROMS.CSLA.Library.CSLACache.UsageAll); // Migrate library documents MigrateLibDocs(cn, pth); // Initialize Dictionaries