Page 1 of 1

OdbcOutput errors management

Posted: Tue Mar 08, 2016 2:01 pm
by ottaviopf
Hi All.

Is there any possibility to manage errors done by an OdbcOutput command in TI process?
My need is to continue to process all the data (even if I'm have an error, as an ex., in an insert for duplicate key) and don't stop immediately the process.

Thx in advance
Ottavio

Re: OdbcOutput errors management

Posted: Tue Mar 08, 2016 2:40 pm
by pandinus
The key solution is to not use the TI command ODBCOUPUT, but write the output to a csv file instead using ASCIIOUTPUT. This way you ensure that all data is being exported from TM1.
Now read the generated csv file to the database and keep track of any errors on the DB-side.

In addition, this will give you a massive improvement in performance when you are exporting more than (say) 10 items.