Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)" Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)" database database

Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)"


Resurrecting an old question, but in case this helps someone else: after much trial-and-error I was finally (finally!) able to get rid of this error by changing this:

ROWTERMINATOR = '\n'

To this:

ROWTERMINATOR = '0x0A'


I had same issue.

Solution:

Verify the CSV or textfile in text editors like notepad+. Last line might be incomplete. Remove it.


I got the same error when I had a different number of delimited fields in my CSV than columns I had in my table. Check if you have the right number of fields in intramerge.csv.

Methods to determine rows with issues:

  1. Open CSV in spreadsheet, add Filter to all data and look for empty values

enter image description here

and here are the rows with less columnsenter image description here

  1. Use this page https://csvlint.com to create your validation rules and you can detect your problems in your CSV as well.

enter image description here