Skip to content
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

Data import error #1408

Open
sergendula opened this issue Feb 21, 2025 · 1 comment
Open

Data import error #1408

sergendula opened this issue Feb 21, 2025 · 1 comment

Comments

@sergendula
Copy link

I have tried importing data into my SSMS through python and for a start I successfully connect to the database and a table is being created but I keep getting the below error.
I initially thought its a problem with the data type but when I used a different excel file which I had uploaded manually on SSMS it still gave thesame error.

An error occurred: (42000',
'[42000] [Microsoft][ODBC Driver 17 for SQL Server] [SQL Server] The incoming tabular data stream
(TDS) remote procedure call (RPC)
protocol stream is incorrect.
Parameter 16 ("'"): The supplied value is not a valid instance of data type float. Check the source data for invalid values. An example of an invalid value is data of numeric type with scale greater than precision. (8023)
(SQLExecDirectW)')
09:42

@Aditya102010
Copy link

It seems actually an issue with datatype that is being uploaded to table. We can always get from datatype of lower precision to higher precision but the other way round it won't be valid.
You may provide what actual data you are passing to the table for us to be able to debug better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants