Affected Software Version: Databases with auditing on DT_LITHOLOGY in a pre-18.104.22.16844 build that were then upgraded to build 22.214.171.12444 or 126.96.36.19914.
Symptoms: If you had auditing enabled on DT_LITHOLOGY prior to updating your database to build 188.8.131.5244, and attempt to add records to DT_LITHOLOGY, you 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 DT_LITHOLOGY 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 © 2022 EarthSoft, Inc • Modified: 21 Jul 2022