Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6961977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:36:01+00:00 2026-05-27T15:36:01+00:00

error list Msg 4866, Level 16, State 7, Line 2 The bulk load failed.

  • 0

error list

Msg 4866, Level 16, State 7, Line 2
The bulk load failed. The column is too long in the data file for row 1, column 1.
Verify that the field terminator and row terminator are specified correctly.

Msg 7399, Level 16, State 1, Line 2
The OLE DB provider “BULK” for linked server “(null)” reported an error.
The provider did not give any information about the error.

Msg 7330, Level 16, State 2, Line 2
Cannot fetch a row from OLE DB provider “BULK” for linked server “(null)”.

fmt file

9.0
10
1       SQLCHAR       2       50      ","   2     EmployeeSSN       SQL_Latin1_General_CP1_CI_AS                    
2       SQLCHAR       2       50      ","   3     DOB               SQL_Latin1_General_CP1_CI_AS                       
3       SQLCHAR       2       50      ","   4     Gender            SQL_Latin1_General_CP1_CI_AS                       
4       SQLCHAR       2       50      ","   5     Relcode           SQL_Latin1_General_CP1_CI_AS                          
5       SQLCHAR       2       50      ","   6     EmployeeID           SQL_Latin1_General_CP1_CI_AS                      
6       SQLCHAR       2       50      ","   7     AssessmentType       SQL_Latin1_General_CP1_CI_AS                    
7       SQLCHAR       2       50      ","   8     MeasurementDate      SQL_Latin1_General_CP1_CI_AS                       
8       SQLCHAR       2       50      ","   9     RecordCreationDate   SQL_Latin1_General_CP1_CI_AS                    
9       SQLCHAR       2       50      ","   10    AttributeID       SQL_Latin1_General_CP1_CI_AS                              
10      SQLCHAR       2       50      "/r/n"   11   AttributeValue    SQL_Latin1_General_CP1_CI_AS

Bulk insert code

BULK insert *******_raw_data
from 'E:\*****_csv\BWC_To_*****_2.csv'
with (formatfile = 'c:\*******_raw_data-n.fmt');

first line from csv

NULL,07/14/1983,F,S,105***,HRA,09/28/2011,09/28/2011,19,1

I am trying to figure out where I am going wrong here…. I have gotten other files to work but have been unsuccessful with this one. The files’ names are correct in my code they are starred out because they are company names

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:36:02+00:00Added an answer on May 27, 2026 at 3:36 pm

    First error:
    Msg 4866, Level 16, State 7, Line 2
    The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly.

    This is either a problem with NULL or the row terminator.
    The last terminator for the row may not be “/r/n”, it could be “/n”. It is best to confirm that with a Hex Editor.

    Second and Third Error:
    These all look like a NULL problem.

    The correct way to handle nulls in BULK INSERT is to specify the KEEPNULLS option.

    with (formatfile = 'c:\*******_raw_data-n.fmt',KEEPNULLS);
    

    Create the csv files with an empty field for NULL values.

    ,07/14/1983,F,S,105***,HRA,09/28/2011,09/28/2011,19,1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following error message with SQL Server 2005 Msg 120, Level
Issue: When executing @somegeog.STWithin(@othergeog) I get the execption: Msg 6506, Level 16, State 10,
How to make Error List window automatically active during compilation in visual studio instead
The Visual Studio Error List shows like 50 errors about controls and variables not
I get the error list iterator not dereferencable when using the following code: bool
This is done manually by going to the Error List output window and double-clicking
When a compile fails in VB.NET in Visual Studio 2008, an Error List pops
I have a list of error codes I need to reference, kinda like this:
Is there a comprehensive list of error/warning messages for the g++ compiler available online?
Is there a list of COM error codes somewhere? Related: HRESULT: 0x80010105 (RPC_E_SERVERFAULT) question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.