With the help of python3, pandas and pyodbc (version 4.0.24), we are tying to upload a data frame with a column "Review" with usually large amounts of text in it. In the middle of the upload process we get the below error:
DataError: (pyodbc.DataError) ('String data, right truncation: length 6454 buffer 6452', '22001') [SQL: u'INSERT INTO
When uploading to the DB, using the if_exists="replace", and we also add dtypes to the column like this:
{'Review Links': VARCHAR(length=4000)})
Is there anything we can do?