O
O
Oleg Petrov2018-11-03 12:12:23
Python
Oleg Petrov, 2018-11-03 12:12:23

How to find out in which column an ​​error occurred when writing to the Postgresql database using the psycopg2 Python library?

I have 2 errors:
1) EXCEPTION: ticker_prices> (, DataError('numeric field overflow\nDETAIL: A field with precision 20, scale 5 must round to an absolute value less than 10^15.\n'), )
2)EXCEPTION : ticker_prices> (, DataError('invalid input syntax for integer: "undefined"\nLINE 1: ...741413.0,0.0,0.0,2230,7959,4643,549,0,0,0,0,0,0, 0,\'undefined...\n
There are 100 columns in the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-11-03
@dimonchik2013

the log is enough and so informative
just take a line and look

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question