dbTalk Databases Forums  

error "Unexpected EOF encountered in BCP data-file" when initializ

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss error "Unexpected EOF encountered in BCP data-file" when initializ in the microsoft.public.sqlserver.replication forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Susan Cooper
 
Posts: n/a

Default error "Unexpected EOF encountered in BCP data-file" when initializ - 08-03-2009 , 03:52 PM






Hi,

I've run into an error trying to initialize one table in transactional
replication. The error is:

"Error messages:
The process could not bulk copy into table '"dbo"."New_AutoTecIssuesBase"'.
(Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037
memory mapped file read failed
To obtain an error file with details on the errors encountered when
initializing the subscribing table, execute the bcp command that appears
below. Consult the BOL for more information on the bcp utility and its
supported options. (Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253
bcp "Online_Vehicle_Exchange_MSCRM"."dbo"."New_AutoTec IssuesBase" in
"D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData\unc\OVE-QACRM02_ONLINE_VEHICLE_EXCHANGE_MSCRM_AUTO\2009080 3163626\New_AutoTecIssuesBase_2#3.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SOVE-CDRSQL01 -T -w
(Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253"

When I copy the bcp command from the error message into a command prompt and
run, I get the following error:

X:\>bcp "Online_Vehicle_Exchange_MSCRM"."dbo"."New_AutoTec IssuesBase" in
"D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData\unc\OVE-QACRM02_ONLINE_VEHICLE_EXCHANGE_MSCRM_AUTO\2009080 3163626\New_AutoTecIssuesBase_2#3.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SOVE-CDRSQL01 -T -w

Starting copy...
SQLState = S1000, NativeError = 0
Error = [Microsoft][SQL Native Client]Unexpected EOF encountered in BCP
data-fil
e

0 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 140


Each time I've tried to initialize a subcription to this table (I've tried
in different publications), I get the same error on the same file name:
...\New_AutoTecIssuesBase_2#3.bcp

How do I resolve this problem? There is 140+GB free on the drive that the
snapshots are written to, so it's not a space problem.

Thanks for the help!!
-Susan

Reply With Quote
  #2  
Old   
Worried in Warren
 
Posts: n/a

Default RE: error "Unexpected EOF encountered in BCP data-file" when initializ - 08-27-2009 , 06:34 PM






Susan,

I've got the exect same situation. How did you resolve it?

Reply With Quote
  #3  
Old   
Parveen Siwach
 
Posts: n/a

Default Re: Susan,I have got the exect same situation. How did you resolve it? - 04-07-2011 , 08:46 AM



Please check if table structure is same on publication and subscriber i.e.Like Column order and Data type if table already existed on subscriber and publication property is "Truncate if name is already in use". This work for me . Transactional Replication:

Thanks
Parveen Siwach
MS SQL Server DBA

Quote:
On Monday, August 03, 2009 4:52 PM Susan Cooper wrote:

Hi,

I have run into an error trying to initialize one table in transactional
replication. The error is:

"Error messages:
The process could not bulk copy into table '"dbo"."New_AutoTecIssuesBase"'.
(Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037
memory mapped file read failed
To obtain an error file with details on the errors encountered when
initializing the subscribing table, execute the bcp command that appears
below. Consult the BOL for more information on the bcp utility and its
supported options. (Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253
bcp "Online_Vehicle_Exchange_MSCRM"."dbo"."New_AutoTec IssuesBase" in
"D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData\unc\OVE-QACRM02_ONLINE_VEHICLE_EXCHANGE_MSCRM_AUTO\2009080 3163626\New_AutoTecIssuesBase_2#3.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SOVE-CDRSQL01 -T -w
(Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253"

When I copy the bcp command from the error message into a command prompt and
run, I get the following error:

X:\>bcp "Online_Vehicle_Exchange_MSCRM"."dbo"."New_AutoTec IssuesBase" in
"D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData\unc\OVE-QACRM02_ONLINE_VEHICLE_EXCHANGE_MSCRM_AUTO\2009080 3163626\New_AutoTecIssuesBase_2#3.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SOVE-CDRSQL01 -T -w

Starting copy...
SQLState = S1000, NativeError = 0
Error = [Microsoft][SQL Native Client]Unexpected EOF encountered in BCP
data-fil
e

0 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 140


Each time I have tried to initialize a subcription to this table (I have tried
in different publications), I get the same error on the same file name:
..\New_AutoTecIssuesBase_2#3.bcp

How do I resolve this problem? There is 140+GB free on the drive that the
snapshots are written to, so it is not a space problem.

Thanks for the help!!
-Susan

Quote:
On Thursday, August 27, 2009 7:34 PM Worried in Warren wrote:

Susan,

I have got the exect same situation. How did you resolve it?

Reply With Quote
  #4  
Old   
Chuck Hottle
 
Posts: n/a

Default Re: error "Unexpected EOF encountered in BCP data-file" when initializ - 05-04-2011 , 11:36 AM



When we encountered this issue, we found cr/lf in one of the columns. Fixing that resolved the issue.

Quote:
On Monday, August 03, 2009 4:52 PM Susan Cooper wrote:

Hi,

I have run into an error trying to initialize one table in transactional
replication. The error is:

"Error messages:
The process could not bulk copy into table '"dbo"."New_AutoTecIssuesBase"'.
(Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037
memory mapped file read failed
To obtain an error file with details on the errors encountered when
initializing the subscribing table, execute the bcp command that appears
below. Consult the BOL for more information on the bcp utility and its
supported options. (Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253
bcp "Online_Vehicle_Exchange_MSCRM"."dbo"."New_AutoTec IssuesBase" in
"D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData\unc\OVE-QACRM02_ONLINE_VEHICLE_EXCHANGE_MSCRM_AUTO\2009080 3163626\New_AutoTecIssuesBase_2#3.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SOVE-CDRSQL01 -T -w
(Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253"

When I copy the bcp command from the error message into a command prompt and
run, I get the following error:

X:\>bcp "Online_Vehicle_Exchange_MSCRM"."dbo"."New_AutoTec IssuesBase" in
"D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData\unc\OVE-QACRM02_ONLINE_VEHICLE_EXCHANGE_MSCRM_AUTO\2009080 3163626\New_AutoTecIssuesBase_2#3.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SOVE-CDRSQL01 -T -w

Starting copy...
SQLState = S1000, NativeError = 0
Error = [Microsoft][SQL Native Client]Unexpected EOF encountered in BCP
data-fil
e

0 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 140


Each time I have tried to initialize a subcription to this table (I have tried
in different publications), I get the same error on the same file name:
..\New_AutoTecIssuesBase_2#3.bcp

How do I resolve this problem? There is 140+GB free on the drive that the
snapshots are written to, so it is not a space problem.

Thanks for the help!!
-Susan

Quote:
On Thursday, August 27, 2009 7:34 PM Worried in Warren wrote:

Susan,

I have got the exect same situation. How did you resolve it?

Quote:
On Thursday, April 07, 2011 9:46 AM Parveen Siwach wrote:

Please check if table structure is same on publication and subscriber i.e.Like Column order and Data type if table already existed on subscriber and publication property is "Truncate if name is already in use". This work for me . Transactional Replication:



Thanks

Parveen Siwach

MS SQL Server DBA

Reply With Quote
  #5  
Old   
Chuck Hottle
 
Posts: n/a

Default Re: error "Unexpected EOF encountered in BCP data-file" when initializ - 05-04-2011 , 11:37 AM



When we encountered this issue, we found cr/lf in one of the columns. Fixing that resolved the issue.

Quote:
On Monday, August 03, 2009 4:52 PM Susan Cooper wrote:

Hi,

I have run into an error trying to initialize one table in transactional
replication. The error is:

"Error messages:
The process could not bulk copy into table '"dbo"."New_AutoTecIssuesBase"'.
(Source: MSSQL_REPL, Error number: MSSQL_REPL20037)
Get help: http://help/MSSQL_REPL20037
memory mapped file read failed
To obtain an error file with details on the errors encountered when
initializing the subscribing table, execute the bcp command that appears
below. Consult the BOL for more information on the bcp utility and its
supported options. (Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253
bcp "Online_Vehicle_Exchange_MSCRM"."dbo"."New_AutoTec IssuesBase" in
"D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData\unc\OVE-QACRM02_ONLINE_VEHICLE_EXCHANGE_MSCRM_AUTO\2009080 3163626\New_AutoTecIssuesBase_2#3.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SOVE-CDRSQL01 -T -w
(Source: MSSQLServer, Error number: 20253)
Get help: http://help/20253"

When I copy the bcp command from the error message into a command prompt and
run, I get the following error:

X:\>bcp "Online_Vehicle_Exchange_MSCRM"."dbo"."New_AutoTec IssuesBase" in
"D:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\ReplData\unc\OVE-QACRM02_ONLINE_VEHICLE_EXCHANGE_MSCRM_AUTO\2009080 3163626\New_AutoTecIssuesBase_2#3.bcp"
-e "errorfile" -t"\n<x$3>\n" -r"\n<,@g>\n" -m10000 -SOVE-CDRSQL01 -T -w

Starting copy...
SQLState = S1000, NativeError = 0
Error = [Microsoft][SQL Native Client]Unexpected EOF encountered in BCP
data-fil
e

0 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 140


Each time I have tried to initialize a subcription to this table (I have tried
in different publications), I get the same error on the same file name:
..\New_AutoTecIssuesBase_2#3.bcp

How do I resolve this problem? There is 140+GB free on the drive that the
snapshots are written to, so it is not a space problem.

Thanks for the help!!
-Susan

Quote:
On Thursday, August 27, 2009 7:34 PM Worried in Warren wrote:

Susan,

I have got the exect same situation. How did you resolve it?

Quote:
On Thursday, April 07, 2011 9:46 AM Parveen Siwach wrote:

Please check if table structure is same on publication and subscriber i.e.Like Column order and Data type if table already existed on subscriber and publication property is "Truncate if name is already in use". This work for me . Transactional Replication:



Thanks

Parveen Siwach

MS SQL Server DBA

Quote:
On Wednesday, May 04, 2011 12:36 PM Chuck Hottle wrote:

When we encountered this issue, we found cr/lf in one of the columns. Fixing that resolved the issue.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.