Migrating from DatabaseInsert to tDBOutput with multiple outputs
Update your Job and your multi-output map to replace the deprecated DatabaseInsert function with tDBOutput components.
You can follow the same steps to replace the DatabaseUpdate function.
Information noteImportant: The migration from DatabaseInsert or
DatabaseUpdate with multiple outputs can be tricky. To avoid
issues, make sure to perform the following steps in the order provided.
Before you begin
- You have a Job containing a tHMap with multiple outputs that use DatabaseInsert functions.
- You have created a connection to your database in Talend Studio. For more information, see Setting up a database connection. Make sure that the schema is identical to the structure used in your map.
About this task
In this example, you have a simple Job with a tFileInputRaw
that reads an XML file containing company information, and a
tHMap that maps the XML data to two database tables. The Job looks like this:
The map used in the tHMap looks like this:
The goal of this example is to remove the deprecated DatabaseInsert function and keep the same behavior for the Job.
Procedure
Results
Information noteTip: You may need to close and reopen your Job to remove the error icon on
the tHMap.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!