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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Capture File Name and put into a separate Database Table only once.

I am very new to Talend.  I've been an SSIS dev for 3 years.  I am creating a "Files Loaded" table so we can see what has been loaded and also use it to reference and not process the same file twice, if I happened to get resent. (dealing with government entity so you never know.) 

 

0683p000009LzWd.jpg

I was able to branch off of the tMap1 and insert into my table however it was inserting a file name per row of the table instead of just inserting the name once. The table structure I'm inserting into is as follows:

 

 

0683p000009LzWi.jpg

Any advice?

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

An easy way of doing this is to restrict the data after the tMap1. Place a tAggregateRow component after the tMap1 and connect the output of that to the Files Loaded component. Do not add a group by element for this component, but set all of your output column functions to First or Last. This will group your entire set into 1 row.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

An easy way of doing this is to restrict the data after the tMap1. Place a tAggregateRow component after the tMap1 and connect the output of that to the Files Loaded component. Do not add a group by element for this component, but set all of your output column functions to First or Last. This will group your entire set into 1 row.

Anonymous
Not applicable
Author

Perfect!!! Thanks.  Worked like a charm.  Now on to getting the record counts input into the table.