Solved

MS SQL Bulk load data error

Posted on 2016-10-20
5
34 Views
Last Modified: 2016-11-21
I am running a stored procedure in SQL, that is importing and converting Apache logs into a csv format. I am getting the following error.

Bulk load data conversion error (type mismatch or invalid character for the specified code page)    error 4864.

This was working fine, and there hasn't been any changes to the stored procedure or the log format.
0
Comment
Question by:VH
  • 3
5 Comments
 
LVL 20

Expert Comment

by:Russ Suter
ID: 41852497
Something in the source data has changed or is in a format not previously seen. I suspect there's a column that is now empty that was not empty before and the column into which you're trying to insert the value does not accept NULLs.
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 41856646
Russ's right. It was your data that changed and not the code.
Don't you have logs configured to store the errors?
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 41876782
VH, a feedback will be appreciated.
Cheers
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 41895770
VH, you shouldn't accept my comment as solution since I didn't provide one.
You may accept Russ's comment or request this question to be deleted.
Cheers
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now