# Catch Errors (Data Ports) node - variable \_error\_reason fades away

**URL:** <https://forum.knime.com/t/catch-errors-data-ports-node-variable-error-reason-fades-away/14591>\
**Category:** KNIME Analytics Platform\
**Created:** [March 27, 2019, 2:29pm UTC](https://forum.knime.com/t/catch-errors-data-ports-node-variable-error-reason-fades-away/14591 "2019-03-27T14:29:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [April 19, 2019, 10:40am UTC](https://forum.knime.com/t/catch-errors-data-ports-node-variable-error-reason-fades-away/14591/6 "2019-04-19T10:40:28Z")

</div>

Hi Rene @renemendes !

Sry for a delay on this one. Here is an example how to use Try/Catch sequence while writing to Database. You have to use Catch Error (Var Ports) in order to get errors from database Writer node. For start I used Try (Variable Ports) but it can work with Data Ports as well. Here is a print screen.

 ![Try_Catch_WritingToDB](https://forum-cdn.knime.com/uploads/default/original/2X/4/466feb091fb0f02204cc9d60190f17a7cf03144d.png)

Additionally I have done same using New Database Integration nodes. There you have [DB Insert](https://hub.knime.com/knime/nodes/DB_Insert_Labs*0vNGuKOukHEP84tE) node that offers more possibilities in configuration and more information in data output port. Check these new nodes out as they are planned to be production ready in KNIME summer release 😉

 ![Try_Catch_WritingToDB2](https://forum-cdn.knime.com/uploads/default/original/2X/c/cac80eea6e8e8564dfbcb2d8bee2a8d3380c2259.png)

Workflow is attached. If any question feel free to ask.  
[2019\_03\_29\_Try\_Catch\_DB\_Writer.knwf](https://forum-cdn.knime.com/uploads/default/original/2X/2/2b7ffcf622d8cd647645207e83dfef07ccb800e0.knwf) (56.0 KB)

Br,  
Ivan

---

_[View the full topic](https://forum.knime.com/t/catch-errors-data-ports-node-variable-error-reason-fades-away/14591)._
