Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Bulk insert - error: Unexpected end-of-file (EOF) encountered in data file.

Reply
Thread Tools

Bulk insert - error: Unexpected end-of-file (EOF) encountered in data file.

 
 
AB@
Guest
Posts: n/a
 
      04-17-2007
Hi to all,
I have a problem about a importation of a file *.csv with SQL Server,
through a bulk insert, called in a store procedure that a c# sw calls.
This is the description of the error:
-----
System.Data.SqlClient.SqlException ่ stata individuata
Message="Bulk Insert: Unexpected end-of-file (EOF) encountered in
data file.\r\nOLE DB provider 'STREAM' reported an error. The provider
did not give any information about the error.\r\nOLE DB error trace
[OLE/DB Provider 'STREAM' IRowset::GetNextRows returned 0x80004005:
The provider did not give any information about the error.].\r\nThe
statement has been terminated."
Source=".Net SqlClient Data Provider"
ErrorCode=-2146232060
Class=16
LineNumber=1
Number=4832
Procedure=""
Server="ets3971"
State=1
StackTrace:
at System.Data.SqlClient.SqlConnection.OnError(SqlExc eption
exception, Boolean breakConnection)
at
System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
exception, Boolean breakConnection)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
stateObj)
at
System.Data.SqlClient.SqlCommand.FinishExecuteRead er(SqlDataReader ds,
RunBehavior runBehavior, String resetOptionsString)
at
System.Data.SqlClient.SqlCommand.RunExecuteReaderT ds(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
async)
at
System.Data.SqlClient.SqlCommand.RunExecuteReader( CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
method, DbAsyncResult result)
at
System.Data.SqlClient.SqlCommand.InternalExecuteNo nQuery(DbAsyncResult
result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at sarbox.Default.LoadFlux_Click(Object sender, EventArgs e) in
c:\Inetpub\wwwroot\Zarbox2.2\SoxAdmin\Default.aspx .cs:line 1509
---

Th@nks to all
AB@

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      04-17-2007
Sounds to me like there is something wrong near the end of the .CSV file. It
could be something as simple as a missing double quote mark.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"AB@" wrote:

> Hi to all,
> I have a problem about a importation of a file *.csv with SQL Server,
> through a bulk insert, called in a store procedure that a c# sw calls.
> This is the description of the error:
> -----
> System.Data.SqlClient.SqlException รจ stata individuata
> Message="Bulk Insert: Unexpected end-of-file (EOF) encountered in
> data file.\r\nOLE DB provider 'STREAM' reported an error. The provider
> did not give any information about the error.\r\nOLE DB error trace
> [OLE/DB Provider 'STREAM' IRowset::GetNextRows returned 0x80004005:
> The provider did not give any information about the error.].\r\nThe
> statement has been terminated."
> Source=".Net SqlClient Data Provider"
> ErrorCode=-2146232060
> Class=16
> LineNumber=1
> Number=4832
> Procedure=""
> Server="ets3971"
> State=1
> StackTrace:
> at System.Data.SqlClient.SqlConnection.OnError(SqlExc eption
> exception, Boolean breakConnection)
> at
> System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
> exception, Boolean breakConnection)
> at
> System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
> stateObj)
> at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
> SqlCommand cmdHandler, SqlDataReader dataStream,
> BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
> stateObj)
> at
> System.Data.SqlClient.SqlCommand.FinishExecuteRead er(SqlDataReader ds,
> RunBehavior runBehavior, String resetOptionsString)
> at
> System.Data.SqlClient.SqlCommand.RunExecuteReaderT ds(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
> async)
> at
> System.Data.SqlClient.SqlCommand.RunExecuteReader( CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
> method, DbAsyncResult result)
> at
> System.Data.SqlClient.SqlCommand.InternalExecuteNo nQuery(DbAsyncResult
> result, String methodName, Boolean sendToPipe)
> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> at sarbox.Default.LoadFlux_Click(Object sender, EventArgs e) in
> c:\Inetpub\wwwroot\Zarbox2.2\SoxAdmin\Default.aspx .cs:line 1509
> ---
>
> Th@nks to all
> AB@
>
>

 
Reply With Quote
 
 
 
 
AB@
Guest
Posts: n/a
 
      04-17-2007
On 17 Apr, 15:56, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.com> wrote:
> Sounds to me like there is something wrong near the end of the .CSV file. It
> could be something as simple as a missing double quote mark.
> Peter
>
> --
> Site: http://www.eggheadcafe.com
> UnBlog: http://petesbloggerama.blogspot.com
> Short urls & more: http://ittyurl.net
>
>
>
> "AB@" wrote:
> > Hi to all,
> > I have a problem about a importation of a file *.csv with SQL Server,
> > through a bulk insert, called in a store procedure that a c# sw calls.
> > This is the description of the error:
> > -----
> > System.Data.SqlClient.SqlException ่ stata individuata
> > Message="Bulk Insert: Unexpected end-of-file (EOF) encountered in
> > data file.\r\nOLE DB provider 'STREAM' reported an error. The provider
> > did not give any information about the error.\r\nOLE DB error trace
> > [OLE/DB Provider 'STREAM' IRowset::GetNextRows returned 0x80004005:
> > The provider did not give any information about the error.].\r\nThe
> > statement has been terminated."
> > Source=".Net SqlClient Data Provider"
> > ErrorCode=-2146232060
> > Class=16
> > LineNumber=1
> > Number=4832
> > Procedure=""
> > Server="ets3971"
> > State=1
> > StackTrace:
> > at System.Data.SqlClient.SqlConnection.OnError(SqlExc eption
> > exception, Boolean breakConnection)
> > at
> > System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
> > exception, Boolean breakConnection)
> > at
> > System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObje*ct
> > stateObj)
> > at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
> > SqlCommand cmdHandler, SqlDataReader dataStream,
> > BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
> > stateObj)
> > at
> > System.Data.SqlClient.SqlCommand.FinishExecuteRead er(SqlDataReader ds,
> > RunBehavior runBehavior, String resetOptionsString)
> > at
> > System.Data.SqlClient.SqlCommand.RunExecuteReaderT ds(CommandBehavior
> > cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean
> > async)
> > at
> > System.Data.SqlClient.SqlCommand.RunExecuteReader( CommandBehavior
> > cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String
> > method, DbAsyncResult result)
> > at
> > System.Data.SqlClient.SqlCommand.InternalExecuteNo nQuery(DbAsyncResult
> > result, String methodName, Boolean sendToPipe)
> > at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> > at sarbox.Default.LoadFlux_Click(Object sender, EventArgs e) in
> > c:\Inetpub\wwwroot\Zarbox2.2\SoxAdmin\Default.aspx .cs:line 1509
> > ---

>
> > Th@nks to all
> > AB@- Nascondi testo tra virgolette -

>
> - Mostra testo tra virgolette -


It's not this, I control. Do you have some other idea?

Th@nks
AB@

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BULK INSERT WITH ADO.NET & ORACLE =?Utf-8?B?U2hpanUgUG95aWxpbA==?= ASP .Net 2 09-09-2009 02:07 PM
Redisplay data in DetailsView if error encountered during insert Jim Coyne ASP .Net 0 11-28-2006 09:08 AM
How to upload file to SQL Server for Bulk Insert? ABC ASP .Net 1 05-11-2006 11:14 AM
bulk insert - form collections for novice Sean ASP .Net 6 06-15-2004 04:12 AM
Bulk Insert of Blob data type in Oracle Niraj C++ 2 03-03-2004 12:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57