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

One Star

[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!

Accepted Solutions
Moderator

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

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

All Replies
Moderator

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

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.