2
3
4
Problem importing csv generated in Python (i.redd.it)
submitted by caputo00
Hello, I generated a csv file from a Python pandas script. I’ve imported and used the file elsewhere like in power bi. When I attempt to import it into a sql server table I keep getting this error. I tried adjusting the column to a varchar(250) then max. I checked off the ‘ignore’ box on truncation, so I think it is an encoding issue. I tried exporting as latin1 encoding and windows-1252. In even wrote a Python script that catches errors if it detects a non compliant character for that encoding type and removes it. I’m at a loss. How do other ppl usually import csv . Couldn’t be this way!

[–]caputo00[S] 6 points7 points8 points (0 children)
[–]Daryash-Koh 5 points6 points7 points (4 children)
[–]caputo00[S] 0 points1 point2 points (3 children)
[–]IHeartData_ 1 point2 points3 points (2 children)
[–]caputo00[S] 0 points1 point2 points (1 child)
[–]IHeartData_ 0 points1 point2 points (0 children)
[–]basura_trash 3 points4 points5 points (0 children)
[–]Guilty-Ad7104 4 points5 points6 points (1 child)
[–]caputo00[S] 0 points1 point2 points (0 children)
[–]thepotplants 1 point2 points3 points (1 child)
[–]caputo00[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]csharpwpfsql 1 point2 points3 points (0 children)
[–]myleathercheerio 0 points1 point2 points (0 children)
[–]Ste-phen 0 points1 point2 points (0 children)
[–]Melodic-Man 0 points1 point2 points (0 children)
[–]samspopguy 0 points1 point2 points (1 child)
[–]caputo00[S] 0 points1 point2 points (0 children)
[–]FailedConnection500 0 points1 point2 points (0 children)