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

Highlighted
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.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch