and more in a single search tool across platforms. Read the announcement here. |
09/20/2022 12:47 AM
Hello,
I am trying to put value of customproperty19 from AD endpoint to user's Customproperty52 using custom query job.
Query:
Update users u set u.customproperty52 = (SELECT a.customproperty19 FROM ACCOUNTS a, users u, USER_ACCOUNTS UA, ENDPOINTS EP where u.username='100767' AND a.ACCOUNTKEY = UA.ACCOUNTKEY AND u.USERKEY = UA.USERKEY AND a.STATUS = 1 AND a.ENDPOINTKEY = EP.ENDPOINTKEY AND EP.ENDPOINTKEY IN (SELECT ENDPOINTKEY FROM ENDPOINTS WHERE UPPER(ENDPOINTNAME) = 'Singlife_Dev_AD_EP') AND u.STATUSKEY = 1) where u.username='100767'
but this job is getting failed.
Any idea, am i missing anything?
09/20/2022 03:34 AM - edited 09/20/2022 03:35 AM
Update users u,ACCOUNTS a, USER_ACCOUNTS UA, ENDPOINTS EP set u.customproperty52 = a.customproperty19 where a.ACCOUNTKEY = UA.ACCOUNTKEY AND u.USERKEY = UA.USERKEY AND a.STATUS = 1 AND a.ENDPOINTKEY = EP.ENDPOINTKEY AND (EP.ENDPOINTNAME) = 'Singlife_Dev_AD_EP' AND u.STATUSKEY = 1 and u.username='100767'
Your query says upper of endpointname but name in right hand is not upper
09/23/2022 01:56 AM
Hi @Vinit556
Please try breaking down your query like run the search query in the data analyser to see if the select query works, then have the condition checked.