-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BCP Command Failed - Error #24
Comments
Do you have any logging output you could capture and share? |
Hi, Unfortunately not really, this is the only Error Message the Library offers so far: raise BCPandasException(f"Bcp command failed with exit code {ret_code}") |
There should be more logging and output than just that. I specifically made all output get logged, this snippet is the function that actually invokes the BCP tool: Lines 210 to 225 in db37a2c
|
Hi, After testing around a little bit, the Traceback itself stays the same with: But before that there is actually an unknown argument issue, how should I pass the port info to SqlCreds? |
Hi, I got similar error. In my cased this was caused by the date format in temporary csv file created. It can be solved easily with a minor change by adding date_format='%Y-%m-%d %H:%M:%S' to to_csv() .
|
I am getting the following error linked to the same as above.
|
bcp.exe is not on your PATH. In my case I had to add
You also have the option to specify the full path by using the |
Hi,
I'm testing this on a CentOs with Python 3.6 and the latest pandas version available in my repo.
BCP Version => Version: 17.7.0001.1
Reading via creds.engine works, so the connection seems to be ok, but writing via to_sql just leads to the following Error:
raise BCPandasException(f"Bcp command failed with exit code {ret_code}")
bcpandas.constants.BCPandasException: Bcp command failed with exit code 1
Any ideas?
to_sql(df, 'TEST', creds, index=False, if_exists='replace')
The text was updated successfully, but these errors were encountered: