valuelookup for filtered table

Dear all,

I have a big table coming out of a database
With valuelookup from dictionary table I add several new columns to the data table
Then datatable is written back to database

But I only want some records from datatable to be processed with vlookup.
So I have to filter datatable before using vlookup

But how can I realize that the complete datatable with all records from inbound is written back to database under the below listed conditions:

  1. datatable contains all records as from inbound
    filtered data with the addtional record and unfiltered data
  2. order of the records is identicle to dictionary table from inbound

Thanks for help!

BR,

Heinz

Hi @Heinz , if my understanding is correct, you want to write back all rows, regardless of whether they are included in the update?

If you filter the database before you are doing the value lookup, then perhaps for your filter you can use a Row Splitter, or Rule Based Row Splitter. You would then perform the Value Lookup on the subset from one port of the Row Splitter and then after the Value Lookup, you could concatenate the result of the Value Lookup with the other port of the Row Splitter

To ensure the same order as the original table, you could include a Counter Generation node before the splitter, then use this to sort after the Concatenate and then make sure you remove the counter with a Column Filter:
e.g.

Alternatively, you could look at processing the records as updates rather than wiping and writing, but it depends on your use case.

2 Likes