Added Error Handler to keep tthe code from crashing if multiple enhanced records exist for a single source record.
This commit is contained in:
parent
3a2759470d
commit
651ce71dc1
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user