diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs index ba8bb6be34a..7a63ef13174 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs @@ -429,17 +429,14 @@ private void ReconcilePreexistingPropertyNames() { if (!appendedPropertyNames.Contains(preexistingPropertyName)) { - if (!Force) - { - string errorMessage = string.Format( - CultureInfo.InvariantCulture, // property names and file names are culture invariant - CsvCommandStrings.CannotAppendCsvWithMismatchedPropertyNames, - preexistingPropertyName, - this.Path); - InvalidOperationException exception = new InvalidOperationException(errorMessage); - ErrorRecord errorRecord = new ErrorRecord(exception, "CannotAppendCsvWithMismatchedPropertyNames", ErrorCategory.InvalidData, preexistingPropertyName); - this.ThrowTerminatingError(errorRecord); - } + string errorMessage = string.Format( + CultureInfo.InvariantCulture, // property names and file names are culture invariant + CsvCommandStrings.CannotAppendCsvWithMismatchedPropertyNames, + preexistingPropertyName, + this.Path); + InvalidOperationException exception = new InvalidOperationException(errorMessage); + ErrorRecord errorRecord = new ErrorRecord(exception, "CannotAppendCsvWithMismatchedPropertyNames", ErrorCategory.InvalidData, preexistingPropertyName); + this.ThrowTerminatingError(errorRecord); } }