Hey Tulasi,
Thanks for your inputs. i am able to resolve all the errors now. but now found a new issue.
even though my Source value BKG_KEY value is different for each record, my output masked value is same. not sure why hash lookup is not working.
t1 = 'PRO=HASH_LOOKUP,HASHFLD=SEQ,'
t1 = t1 .. 'SOURCE="BKG_KEY",'
t1 = t1 .. 'DEST="CONTACT_TXT",'
t1 = t1 .. 'REPLACE="FIRSTNAME",'
t1 = t1 .. 'id="OPTIM_SAMPLE.OPTIM_US_PERSON",lib=MSSQL,conn=OPTIMDIR,'
t1 = t1 .. 'user=OPTIMUSER,pass=OptimPassword1,'
t1 = t1 .. 'FLDDEF1=(NAME=BKG_KEY,DT=INTEGER),'
t1 = t1 .. 'FLDDEF2=(NAME=CONTACT_TXT,DT=WVARCHAR_SZ)'
FNAME=optim.mask(BKG_KEY,CON_VAL,t1)
------------------------------
rajesh guttikonda
------------------------------
Original Message:
Sent: Tue February 21, 2023 11:54 PM
From: Tulasi Das Uppu
Subject: lua script issue with has lookup for MS SQL OPTIM dir
Hi Rajesh,
Can you include latest LUA script and complete error message?
------------------------------
Tulasi Das Uppu
------------------------------
Original Message:
Sent: Tue February 21, 2023 10:57 AM
From: rajesh guttikonda
Subject: lua script issue with has lookup for MS SQL OPTIM dir
Hey Thulasi i made a good progress. now facing issue at the final step.
Optim mask is unable to identify the lookup table and lookup column. no matter which ever lookup table or lookup column i give having the same error.
| IOQDP0306E: Replacement field FIRSTNAME not found in the supplied list of fields |
Even if i give wrong lookup names i am receiving the same error.
------------------------------
rajesh guttikonda
Original Message:
Sent: Tue February 21, 2023 02:00 AM
From: Tulasi Das Uppu
Subject: lua script issue with has lookup for MS SQL OPTIM dir
Hi Rajesh,
This kind of problem should be something to do with the LUA script. You may have to start with simple script, test and do incremental changes followed by testing. This should fix your problem.
------------------------------
Thanks,
Tulasi