TextFieldParser is unable to complete the read operation because maximum buffer size has been exceeded

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

The operation cannot be completed because the maximum buffer size (10,000,000 bytes) has been exceeded.

To correct this error

  • Make sure there are no malformed fields in the file.

OpenTextFieldParser
TextFieldParser
How to: Read From Text Files with Multiple Formats
Parsing Text Files with the TextFieldParser Object

Show: