# Import-OfficeCsv

Imports CSV rows as PSCustomObjects, dictionaries, or a DataTable.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.CSV.CsvDocument` `System.String[]`

**Source**

[ImportOfficeCsvCommand.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Csv/ImportOfficeCsvCommand.cs#L32) 

Imports CSV rows as PSCustomObjects, dictionaries, or a DataTable.

## Syntax

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-CompressionType <Auto|GZip|Deflate|Brotli|ZLib>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-Delimiter <String>]
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-Encoding <Encoding>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
[-MaxDecompressedBytes <Int64>]
[-MaxFieldLength <Int32>]
[-MaxInputBytes <Int64>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-Path] <String[]>
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
[-TrimWhitespace]
[<CommonParameters>]
```

[#](#member-daa8e810b746bb0911a4dc8b)

Parameter set: `Path`

```
Import-OfficeCsv
[-As <Object|Hashtable|DataTable|DataReader|Document>]
-Document <CsvDocument>
[<CommonParameters>]
```

[#](#method-import-officecsv-officecsvoutput-csvdocument)

Parameter set: `Document`

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-CompressionType <Auto|GZip|Deflate|Brotli|ZLib>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-Encoding <Encoding>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
[-MaxDecompressedBytes <Int64>]
[-MaxFieldLength <Int32>]
[-MaxInputBytes <Int64>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-Path] <String[]>
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
[-TrimWhitespace]
-UseCulture
[<CommonParameters>]
```

[#](#member-1b29daf79abb3aa39b54ea75)

Parameter set: `PathCulture`

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-CompressionType <Auto|GZip|Deflate|Brotli|ZLib>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-DelimiterCandidates <Char[]>]
-DetectDelimiter
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-Encoding <Encoding>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
[-MaxDecompressedBytes <Int64>]
[-MaxFieldLength <Int32>]
[-MaxInputBytes <Int64>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-Path] <String[]>
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
[-TrimWhitespace]
[<CommonParameters>]
```

[#](#member-a5297272f3d8218348365e5c)

Parameter set: `PathDetect`

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-CompressionType <Auto|GZip|Deflate|Brotli|ZLib>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-Delimiter <String>]
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-Encoding <Encoding>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
-LiteralPath <String[]>
[-MaxDecompressedBytes <Int64>]
[-MaxFieldLength <Int32>]
[-MaxInputBytes <Int64>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
[-TrimWhitespace]
[<CommonParameters>]
```

[#](#member-44115fe4caccdefae1b7a27a)

Parameter set: `LiteralPath`

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-CompressionType <Auto|GZip|Deflate|Brotli|ZLib>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-Encoding <Encoding>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
-LiteralPath <String[]>
[-MaxDecompressedBytes <Int64>]
[-MaxFieldLength <Int32>]
[-MaxInputBytes <Int64>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
[-TrimWhitespace]
-UseCulture
[<CommonParameters>]
```

[#](#member-234db4002bde30ad54c5470f)

Parameter set: `LiteralPathCulture`

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-CompressionType <Auto|GZip|Deflate|Brotli|ZLib>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-DelimiterCandidates <Char[]>]
-DetectDelimiter
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-Encoding <Encoding>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
-LiteralPath <String[]>
[-MaxDecompressedBytes <Int64>]
[-MaxFieldLength <Int32>]
[-MaxInputBytes <Int64>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
[-TrimWhitespace]
[<CommonParameters>]
```

[#](#member-98c1fee2660b7f75b083237b)

Parameter set: `LiteralPathDetect`

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-Delimiter <String>]
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
[-MaxFieldLength <Int32>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
-Text <String>
[-TrimWhitespace]
[<CommonParameters>]
```

[#](#member-ceddf856ba333c04fc31dc88)

Parameter set: `Text`

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
[-MaxFieldLength <Int32>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
-Text <String>
[-TrimWhitespace]
-UseCulture
[<CommonParameters>]
```

[#](#member-e5475c2d772539f22247b43b)

Parameter set: `TextCulture`

```
Import-OfficeCsv
[-AllowEmptyLines]
[-As <Object|Hashtable|DataTable|DataReader|Document>]
[-CollectParseErrors]
[-ColumnCountMismatchPolicy <Strict|PadMissingFieldsAndIgnoreExtraFields>]
[-ColumnType <IDictionary>]
[-CommentCharacter <Char>]
[-Culture <CultureInfo>]
[-DateTimeFormats <String[]>]
[-DelimiterCandidates <Char[]>]
-DetectDelimiter
[-DuplicateHeaderBehavior <Preserve|Rename|Throw>]
[-EscapeCharacter <Char>]
[-Header <String[]>]
[-InferSchema]
[-InternStrings]
[-MaxFieldLength <Int32>]
[-MaxParseErrors <Int32>]
[-MaxQuotedFieldLength <Int32>]
[-Mode <Stream|InMemory>]
[-NoHeader]
[-NormalizeQuotes]
[-NoSkipCommentRowsBeforeHeader]
[-NoW3CFieldsHeader]
[-NullValue <String>]
[-ParseErrorAction <Throw|SkipRow>]
[-ProgressInterval <Int32>]
[-QuoteCharacter <Char>]
[-QuoteParsingMode <Lenient|Strict>]
[-SchemaSampleRows <Int32>]
[-SkipCommentRows]
[-SkipRows <Int32>]
[-StaticColumns <IDictionary>]
-Text <String>
[-TrimWhitespace]
[<CommonParameters>]
```

[#](#member-43ec1ac658a06747b020ddd6)

Parameter set: `TextDetect`

## Description

Uses the CSV header to map fields to property names.

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Configuration Files and Data Conversion](/docs/pswriteoffice/config-data-formats/) Guide
  
  Edit YAML and TOML without losing comments, read and write them as objects, and convert JSON, YAML, TOML, XML, CSV and Excel data from PowerShell.
- [Choose a PSWriteOffice Workflow](/docs/pswriteoffice/choosing-a-workflow/) Guide
  
  Decide between authoring, editing, inspection, conversion, and normalized Reader extraction. Includes examples and cmdlet links.
- [Import, Export, and Publish Excel Data](/docs/pswriteoffice/excel-export-publish/) Guide
  
  Move delimited data into Excel, export workbook visuals and HTML, and choose the right publishing surface for downstream readers.
- [Database Reporting with DbaClientX](/docs/workflows/database-reporting/) Guide
  
  Move SQL data into Excel or CSV, verify the artifact, and optionally load it back with DbaClientX and PSWriteOffice. Includes examples and API links.
- [CSV Dialects and Encodings](/docs/csv/dialects-encodings/) Guide
  
  Read and write semicolon, tab and pipe-delimited CSV, detect delimiters, and choose encodings, cultures and policy profiles with OfficeIMO.CSV.
- [Read CSV into Typed Objects](/docs/csv/read-typed/) Guide
  
  Map CSV rows to .NET objects, read typed values through a forward-only data reader, and infer column types with OfficeIMO.CSV and PowerShell.

## Examples

### Read rows as PSCustomObjects.

```powershell
Import-OfficeCsv -Path .\data.csv | Format-Table
```

Imports each row as a PSCustomObject.

### Read rows as dictionaries.

```powershell
Import-OfficeCsv -Path .\data.csv -As Hashtable | ForEach-Object { $_['Name'] }
```

Uses hashtables for dynamic schemas or key-based access.

### Read rows as a DataTable.

```powershell
Import-OfficeCsv -Path .\data.csv -As DataTable
```

Emits one DataTable per input file for database and table-oriented workflows.

## Parameters

**-AllowEmptyLines SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Allow empty lines in the input.

**-As OfficeCsvOutput optional**

Output shape: Object, Hashtable, DataTable, DataReader or Document.

Possible values: `Object`, `Hashtable`, `DataTable`, `DataReader`, `Document`

**-CollectParseErrors SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Collect parse errors and write them as non-terminating errors after each file.

**-ColumnCountMismatchPolicy CsvColumnCountMismatchPolicy optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Controls how rows with fewer or more fields than the header are handled.

Possible values: `Strict`, `PadMissingFieldsAndIgnoreExtraFields`

**-ColumnType IDictionary optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Explicit column types used when emitting DataTable or IDataReader output.

**-CommentCharacter Char optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Character that identifies comment rows.

**-CompressionType CsvCompressionType optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect**

Compression used when reading files. Auto infers from the file extension.

Possible values: `Auto`, `GZip`, `Deflate`, `Brotli`, `ZLib`

**-Culture CultureInfo optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Culture used for type conversions.

**-DateTimeFormats String[] optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Additional date/time formats used by typed conversions and validation.

**-Delimiter String optionalsets: Path, LiteralPath, Text**

Field delimiter, including multi-character delimiters.

**-DuplicateHeaderBehavior CsvDuplicateHeaderBehavior optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Controls how duplicate header names are handled.

Possible values: `Preserve`, `Rename`, `Throw`

**-Encoding Encoding optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect**

Encoding used when reading the file.

**-EscapeCharacter Char optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Character that escapes the quote character, or itself, inside quoted fields, such as a backslash. Leave unset to read a doubled quote character as one.

**-Header String[] optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Explicit header names to use; when provided, the first CSV record is treated as data.

**-InferSchema SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Infer typed columns when -As DataTable or -As DataReader is used.

**-InternStrings SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Reuse repeated string values through a per-read cache.

**-MaxDecompressedBytes Int64 optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect**

Maximum decompressed bytes to read from compressed CSV files.

**-MaxFieldLength Int32 optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Maximum length allowed for any parsed field.

**-MaxInputBytes Int64 optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect**

Maximum input bytes to read. Streamed imports read files of any size unless this is set; imports that load the whole file into memory default to 256 MiB.

**-MaxParseErrors Int32 optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Maximum number of collected parse errors before parsing fails.

**-MaxQuotedFieldLength Int32 optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Maximum length allowed for fields parsed from quoted records.

**-Mode CsvReadMode optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Load mode controlling materialization.

Possible values: `Stream`, `InMemory`

**-NoHeader SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Treat the first record as data and generate default column names.

**-NormalizeQuotes SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Normalize curly quote characters to straight quotes.

**-NoSkipCommentRowsBeforeHeader SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Keep comment rows while discovering the header.

**-NoW3CFieldsHeader SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Disable W3C Extended Log File Format #Fields: headers.

**-NullValue String optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Token that is materialized as null when importing rows.

**-ParseErrorAction CsvParseErrorAction optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

How parse errors are handled.

Possible values: `Throw`, `SkipRow`

**-Path String[] requiredposition: 0pipeline: True (ByValue, ByPropertyName)sets: Path, PathCulture, PathDetect**

Path to one or more CSV files. Wildcards are supported.

**-ProgressInterval Int32 optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Report progress every N parsed records.

**-QuoteCharacter Char optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Character that encloses quoted fields. Defaults to the double quote.

**-QuoteParsingMode CsvQuoteParsingMode optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Controls whether malformed quoted fields are parsed leniently or rejected.

Possible values: `Lenient`, `Strict`

**-SchemaSampleRows Int32 optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Maximum row count inspected when schema inference is enabled.

**-SkipCommentRows SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Skip comment rows throughout the file.

**-SkipRows Int32 optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Number of parsed CSV records to skip before header discovery or data output.

**-StaticColumns IDictionary optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Static columns appended to every imported row.

**-TrimWhitespace SwitchParameter optionalsets: Path, PathCulture, PathDetect, LiteralPath, LiteralPathCulture, LiteralPathDetect, Text, TextCulture, TextDetect**

Trim whitespace around unquoted fields.

**-Document CsvDocument requiredpipeline: True (ByValue)sets: Document**

CSV document to read when already loaded.

**-UseCulture SwitchParameter requiredsets: PathCulture, LiteralPathCulture, TextCulture**

Use the list separator from the selected or current culture as the delimiter.

**-DelimiterCandidates Char[] optionalsets: PathDetect, LiteralPathDetect, TextDetect**

Delimiter candidates to consider when detecting the delimiter.

**-DetectDelimiter SwitchParameter requiredsets: PathDetect, LiteralPathDetect, TextDetect**

Detect the delimiter from the first meaningful records.

**-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath, LiteralPathCulture, LiteralPathDetect**

Literal path to one or more CSV files.

**-Text String requiredsets: Text, TextCulture, TextDetect**

CSV text to parse without creating a temporary file.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:97D0DAF0864DA1B5A1295B559CB73AFEFD5472562437794B262D546974F34A90 -->
