Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Connect multiple DB inputs to tmap component

Hi,
I currently have two databases (one on oracle and one on a mssql server), and I want to connect two inputs (one table from each DB) to a tmap component, but for some reason I can only connect one... (I have already seen the tutorial for tmap, did I miss something ?)
Here is a screenshot of my job :
0683p000009MDcV.png
I want to connect both inputs to the tmap, is there a way to do so ?
Thanks in advance for your time ! 0683p000009MACn.png
Thomas
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

You can use more than one connection component. It is to do with how you have them linked using the "OnSubJobOK" links. In your job, you should have your components connected as below ....
ConnectionSMI --OnSubJobOK--> ConnectionOracle --OnSubJobOK-->HISTOTOX--row-->tMap <--row---ALIZES

View solution in original post

7 Replies
Anonymous
Not applicable
Author

A tMap has a concept of a "main" data input and "lookup" inputs. You need to decide which is your "main" input and disconnect the "lookup" from its "OnSubJobOK". Then connect the tMap to the "main" input first. Afterwards connect up the "lookup" input. 
Anonymous
Not applicable
Author

I see.. It's working now, but only because I deleted both connection components, so I can't use an "existing connection" to my inputs now, I have to write manually the connection data.. 
I can indeed keep both connection components, but if it is not linked to something, I may have a nullpointerexception when I'd launch the executable generated from the job. But since I only have 2 inputs it's ok..
Anyway, thank you very much for the help, I'll set this topic as resolved. 0683p000009MACn.png
Thomas
Anonymous
Not applicable
Author

You can use more than one connection component. It is to do with how you have them linked using the "OnSubJobOK" links. In your job, you should have your components connected as below ....
ConnectionSMI --OnSubJobOK--> ConnectionOracle --OnSubJobOK-->HISTOTOX--row-->tMap <--row---ALIZES
Anonymous
Not applicable
Author

Oh I see, thanks !
Anonymous
Not applicable
Author

Hi,
I have the same issue, but the difference is, I need a subjob ok to prevent the connection kicking before the context variables loads.  As a result, the connection is trying to connect before the context variables load.  Any help would be appreciated.
Thanks
David
Anonymous
Not applicable
Author

I am having the same problem you have. I have read the same direction but still have trouble connecting multiple DB inputs with the tmap component.
Connect with mobdroportugal

manodwhb
Champion II
Champion II

Since orgin is one so which you cannot connect,since you need to use thashputput and thasinput component to over come this issue.