// Wrap the UpdateValues in a Try Catch to deal with exceptions and prevent service from hard crashing private async Task _TryUpdateValuesAsync(PIPoint sourcePoint, IEnumerable <AFValue> values, Foo csvItem) { try { await sourcePoint.UpdateValuesAsync(values.ToList(), OSIsoft.AF.Data.AFUpdateOption.Insert); } catch (ArgumentException e) { _logger.Information($"There are no |ACTIVE| alarms in the last 10mins for {csvItem.AlarmTagInput}."); } }