unique_field.put_Indexed(false)
set property WarningMode to 0; -- your code set property WarningMode to 1;