|
<< Click to Display Table of Contents >> Navigation: Professional > Troubleshooting > INSERT Error in DT_LITHOLOGY |
Affected Software Version: Databases with auditing on the DT_LITHOLOGY table in a pre-7.0.0.19144 build that were then upgraded to build 7.0.0.19144 or 7.0.0.19214.
Symptoms: If auditing was enabled on the DT_LITHOLOGY table prior to updating the database to build 7.0.0.19144, and attempt to add records to DT_LITHOLOGY, users will receive the following error even when END_DEPTH is populated:
Failed to commit changes since one or more of the record(s) could not be saved. Could not insert into dt_lithology row #|#||... because the INSERT statement conflicted with the CHECK constraint 'CK__dt_lithology__end_depth__required' The conflict occurred in database "[DatabaseName]", table "dbo.dt_lithology". The statement has been terminated. |
Cause/Details: The trigger [trg_dt_lithology_instead_of_insert] that is added when auditing is turned on for the DT_LITHOLOGY table is not properly re-created during the update process.
Resolution/Workaround: The database administrator should run the following in SQL Server Management Studio.
EXEC equis.refresh_schema 'dbo', 'dt_lithology';
For EarthSoft hosted clients, EarthSoft makes this change. If experiencing this error, please contact EarthSoft Support.
Copyright © 2026 EarthSoft, Inc. • Modified: 07 Jun 2026