Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/30/2024 10:14 AM
Hello,
The user import is failing with the error: Subquery returns more than one row
In the logs I see below query under modifyuserdata jason is failing:
"UPDATE NEWUSERDATA as NU SET NU.CUSTOMPROPERTY39 =(select A.accountid from CURRENTACCOUNTS A WHERE A.CUSTOMPROPERTY22=NU.customproperty11 and status = '1')",
Complete Modify userdata json is attached
How do I identify which user is causing the issue?
Thanks
Nidhi Sharma
07/30/2024 10:17 AM
Hi @NID27 , is this a new query that you are planning to add or import started failing recently?
07/30/2024 12:31 PM
No... That is an existing query. and the import started failing recently
07/30/2024 01:41 PM
Share logs to debug the issue.
07/30/2024 04:25 PM
"UPDATE NEWUSERDATA as NU SET NU.CUSTOMPROPERTY39 =(select group_concat(A.accountid)from CURRENTACCOUNTS A WHERE A.CUSTOMPROPERTY22=NU.customproperty11 and endpointkey=1 and status = '1')",
07/30/2024 10:19 AM
Try this
UPDATE NEWUSERDATA as NU SET NU.CUSTOMPROPERTY39 =(select A.accountid from CURRENTACCOUNTS A WHERE A.CUSTOMPROPERTY22=NU.customproperty11 and status = '1' limit 1)",
07/30/2024 01:48 PM - edited 07/30/2024 01:51 PM
Hi @NID27 ,
Q. How do I identify which user is causing the issue?
Perform the select query like below and check if there are any entries. (If you know user from the import, you can join the tables and find right user accounts)
select a.name, a.CUSTOMPROPERTY22 from accounts a where a.name in (select a1.CUSTOMPROPERTY22 from accounts a1 group by a1.CUSTOMPROPERTY22 having count(*) > 1)
My guess, multiple entry is due to Mutiple accounts for different endpoints.
If this helps, please consider selecting Accept As Solution and hit Kudos