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