Support Questions

Find answers, ask questions, and share your expertise

Question of Multiple columns lookup or chain of lookup service

avatar
Rising Star

Dear all,

A bit background about this:

I have newly incoming data from data vendor every week, and I would like to do either insert or update to my current database. If lookup matched some value (such as companyid, fiscal_year, ...etc,. )in a record then we update some value(annoucement date), otherwise insert.

jarviszzzz_0-1706164037221.png

My lookup service setup:

(Company ID)

jarviszzzz_1-1706163492807.png

jarviszzzz_2-1706163515500.png

(Fiscal Year):

jarviszzzz_3-1706163540383.png

jarviszzzz_4-1706163556336.png

My data is like this:

Before lookup:

jarviszzzz_5-1706163595810.png

After lookup company ID (it return fs_ID):

jarviszzzz_6-1706163639762.png

After lookup fiscal year (it return fs_ID):

jarviszzzz_8-1706163698123.png

And I go to Mysql database to check fs_ID = 351225894:

jarviszzzz_10-1706163768502.png

IT DOES NOT MATCH THE COMPANY_ID (but it matched Fiscal_year)!!!!! It seems like each lookup processor working independently. My expected output it should does this: ent_fundamental.Company_ID = myincomingdata.company_ID AND ent_fundamental.Fiscal_year = myincomingdata.Fiscal_year etc., (then it will return me a fs_ID so that I can update this record)

Or Does anyone have any good idea to do a multiple columns lookup in NIFI?

 

 

0 REPLIES 0