Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] insert data into MS Sql server

Hello!
I get the follow error on trying to insert data into MS Sql Server

Exception in component tMSSqlOutput_1
java.sql.SQLException: Line 1: Length or precision specification 0 is invalid.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:628)
at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:525)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:487)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:664)

What is wrong?
Could you help me plese?
Gisella
Labels (4)
1 Solution

Accepted Solutions
2 Replies
Anonymous
Not applicable
Author

Check that the schema which is in use for the tMSSQLOutput_1 component has the appropriate data lengths included for all fields (under edit schema in the component).
I believe the lengths need to be included as part of the schema for validation purposes.
Anonymous
Not applicable
Author