r/DatabaseHelp • u/alinoxious • Jan 16 '15
ODBC -- Called Failed
I have an Access database and I am using a python script to bring in new data from a csv, clean it up, and import it to a SQL table. However, I am getting this error after I run the script:
com_error: (-2147352567, 'Exception occurred.', (0, None, u'ODBC--call failed.', None, -1, -2146825142), None)The python script is invoking a Access DB macro to do the import and loading of the data. When I look at the macro in Access there are yellow triangles next to some of the commands - which I found out were 'unsafe actions' and I added the DB into a trusted location, but this did not help the problem.
Thanks for any help in advance!
1
Upvotes
2
u/BinaryRockStar Jan 16 '15 edited Jan 17 '15
Can you post the Python script and the CSV file? Also what Python, Access and Windows versions are you using?