tdb protection from exception in update function