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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dstreun
Partner - Contributor III
Partner - Contributor III

How to call a database procedure for each row and continue to a tMap?

Challenge: I have to call a database procedure before processing each row (insert/update). The procedure sets a context (security, valid-as-of-date etc.) which is used by an instead-of trigger. - How can I do this?

I tried with a component sequence of a tFlowToIterate, a tDBSP and a tMap with several tDBOutputs. But such a sequence does not seem to work. A tLogRow instead of a tDBOutput shows that all attributes are null. - Probably, because tDBSP does not pass the values from the input row to the output row...

Labels (3)
1 Solution

Accepted Solutions
dstreun
Partner - Contributor III
Partner - Contributor III
Author

0683p000009M9l8.jpgFinally, I found that I could use a tFixedFlowInput component to solve my issue.

View solution in original post

3 Replies
manodwhb
Champion II
Champion II

Hi, you need to iterate records using tflwtoiterate and then you need to use tdbsp component to execute the procedure.
dstreun
Partner - Contributor III
Partner - Contributor III
Author

That's what I did - see my description. Does not help!

dstreun
Partner - Contributor III
Partner - Contributor III
Author

0683p000009M9l8.jpgFinally, I found that I could use a tFixedFlowInput component to solve my issue.