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

How to not execute the "Catch lookup inner join reject" flow from tMap

Hello,

 

I'm facing a problem when trying to make a execution flow with tMap using the feature "Catch lookup inner join reject". In the flow below, I'm getting only the data that doesn't exist in the db table to insert it. However, I want to catch this data after the insert, to save the pk that was inserted in a global variable. The problem is that even if not exist data to be inserted (as you can see the stats 0 rows in Main order:2), the component tDBInput_2 is always called, causing an issue, because in this component I'm selecting the currval of a sequence, that is inserted by the dm_merchant component, that is never called.

0683p000009M97n.png

Exist some way to execute the tDBInput_2 only if exist records in the Main order:2 connection flow?

 

NOTE: Another doubt is that I'm using two tSetGlobalVar to save the same variable, that is the pk inserted or selected by the tMap; exist some component to join these flows so I can call the tSetGlobalVar once?

 

Thank you!

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thank you @TRF,

 

As a workaround, I changed the tDBOutput to tDBRow with a returning statement to get the pk inserted. Then, to get the returning query, a used a tParseRecordSet --> tSetGlobalVar. With this, the flow worked.

 

Luiz

View solution in original post

2 Replies
TRF
Champion II
Champion II

Use trigger "If" instead of 'OnComponentOK" (use global variables associated to "dm_merchant" to decide to continue or not).
For the 2nd point, you can let as is.
Anonymous
Not applicable
Author

Thank you @TRF,

 

As a workaround, I changed the tDBOutput to tDBRow with a returning statement to get the pk inserted. Then, to get the returning query, a used a tParseRecordSet --> tSetGlobalVar. With this, the flow worked.

 

Luiz