Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

MODIFYUSERDATAJSON in workday connection | Update User query not working

darshanmandhane
New Contributor III
New Contributor III

MODIFYUSERDATAJSON in workday connection | Update User query not working

In the MODIFYUSERDATAJSON of workday connection (which is a source of truth) for user identities, under PREPROCESSQUERIES section, we have added the below query:
"UPDATE NEWUSERDATA SET customproperty40 = 'TRUE' WHERE startdate <= now() AND statuskey ='1' AND customproperty40 IS NULL".

After running the import for this connection, customproperty40 is getting set to value 'TRUE' for almost all users except for a few users. We're not getting the reason for the same.

darshanmandhane_0-1727438089885.png

These 28 user records are present and other attributes are getting updated for these users from this import. Any further help to resolve this issue would be appreciated.

8 REPLIES 8

rushikeshvartak
All-Star
All-Star

Validate below

select username,startdate,customproperty40,statuskey from users where customproperty40 != 'TRUE'

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

There are 0 records with this query 

select username,startdate,customproperty40,statuskey from users where customproperty40 != 'TRUE'

------------------------------------------------------------------------------------------------------------------

However, there are 28 records with below query

select username,startdate,customproperty40,statuskey from users WHERE startdate <= now() AND statuskey = 1 AND customproperty40 IS NULL

 

------------------------------------------------------------------------------------------------------------------

Even if I have configured the connection to update the records as per the below query, it is not working

"UPDATE NEWUSERDATA SET customproperty40 = 'TRUE' WHERE startdate <= now() AND statuskey ='1' AND (customproperty40 IS NULL OR customproperty40 != 'TRUE')

select username,startdate,customproperty40,statuskey ,now() as today from users where customproperty40 is null


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

darshanmandhane_0-1727442299470.png

 

Does this user coming from latest import ?

UPDATE NEWUSERDATA
SET customproperty40 =
CASE
WHEN startdate <= now() AND statuskey = '1' AND customproperty40 IS NULL THEN 'TRUE'
ELSE 'FALSE'
END;

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Yes, we tried this as well, In fact I tried this again, but it is not processing with this option either.

darshanmandhane_0-1727444140929.png

darshanmandhane_1-1727444290711.png

 

Add jobid in query

Does this user coming from latest import ?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Yes, it is a full upload every time it runs. It's not incremental.