Release : 16.1.1 16.1.2
Reported as DE79937
Update the query to add the yellow highlighted parts below. It will need row_number as a unique_Id and TS.PRID = COALESCE(@WHERE:PARAM:USER_DEF:INTEGER:USERDEFTSID_PARAM@, TS.PRID; which will be used to map the appropriate time entry.
The hidden key should be the row_number field so it will be unique
SELECT ROW_NUMBER() OVER(order by null) as row_number,
@SELECT:TE.PRID:PRTIMEENTRYID@,
@SELECT:SUBSTR(WI.LW_WORKER,1,30):USERVALUE@,
@SELECT:SUBSTR(WI.LW_WORKER,1,30):DISPLAYVALUE@,
@SELECT:'en':LANGUAGE_CODE@,
@SELECT:1:LANGUAGE_ID@
FROM PRTIMESHEET TS, PRTIMEENTRY TE, ODF_CA_LW_CUST WI
WHERE 1=1 and TS.PRID = COALESCE(@WHERE:PARAM:USER_DEF:INTEGER:USERDEFTSID_PARAM@, TS.PRID)
AND TS.PRID = TE.PRTIMESHEETID AND @FILTER@
The Load Data Warehouse may fail if you run it after updating or clicking Save for Time Entry User Value 1 without any updates. This is part of another defect fix. Please use the below delete statement before you run the LDWH job to avoid this error.
delete from dwh_meta_columns where DWH_TABLE_NAME in ('dwh_tme_entry', 'dwh_tme_entry_ln') and ATTRIBUTE_CODE like 'user_value1%' and is_deleted =1;