Added Error Handler to keep tthe code from crashing if multiple enhanced records exist for a single source record.

This commit is contained in:
Rich 2016-11-29 21:50:20 +00:00
parent 3a2759470d
commit 651ce71dc1

View File

@ -5421,6 +5421,14 @@ namespace VEPROMS.CSLA.Library
}
catch (Exception ex)
{
// Don't crash on Primary Key Problem.
Exception ex1 = ex;
while (ex1 != null)
{
if (ex1.Message.Contains("PRIMARY KEY"))
return null;
ex1 = ex1.InnerException;
}
throw new DbCslaException("Error on ItemInfoList.GetListEnhancedTextDifferences", ex);
}
}