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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Microsoft - Driver Manager ODBC - Invalid string or buffer length

Hi,
I'm trying to migrate data from MS Access 2010 to MS SQL Server 2014. I get the following exception:
   Invalid string or buffer length
        at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)

I have read different opinions about it and I have found that if I run the Job in Java Debug mode it works without any problems.
Why it happens? Thanks in advance.
I don't know if it's the best solution but it works for me. I have simply changed the order of the columns that throws the exception, both in the tMap component and in the SELECT query on the MS Access table component. In any case, it remains a big mystery!
Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
Are you using 64 bit sql server 2014? Please take a look at an article about:http://stackoverflow.com/questions/26745417/invalid-string-or-buffer-length.
Best regards
Sabrina

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi,
Are you using 64 bit sql server 2014? Please take a look at an article about:http://stackoverflow.com/questions/26745417/invalid-string-or-buffer-length.
Best regards
Sabrina