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

Issue with UPDATEUSERJSON in DB Connection

Pavan16
New Contributor III
New Contributor III

Hi Everyone,

I am trying to write few attributes back to my DB, but facing an error while running the provisioning job I have provided my connection details below. and I am getting below error, please check and help me with resolving the error as I am not able to find this ')' in my connection.

UPDATEUSERJSON:{
"UpdateUserQry": ["CALL testproc( ) ",
"UPDATE dbo.test SET lan_id=${user.customproperty10}, email=${user.email}, companyname=${user.companyname} WHERE emi_id=${user.employeeid}"]
}

MODIFYUSERDATAJSON:

{
"ADDITIONALTABLES": {
"USERS": "SELECT * FROM USERS"
},
"COMPUTEDCOLUMNS": [
"email", "customproperty10"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA SET email = concat(substring(NEWUSERDATA.lastname,1,1),NEWUSERDATA.firstname,'@gmail.com')",
"UPDATE NEWUSERDATA SET customproperty10 = concat(substring(NEWUSERDATA.lastname,1,1),'XS',NEWUSERDATA.employeeid)"

]
}

Error:
SAV - Error while updating user - Incorrect syntax near ')'.

Pavan1603_0-1721201995225.png

 

 

 

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Is it working from database ?


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

Pavan16
New Contributor III
New Contributor III

Yes, I am able to import users from database. 

What is issue  ? Provisioning ? 

Share task screenshot /logs?


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

Pavan1603_0-1721277841482.png

Yes, I am trying to update user details in my DB from update user task with few attributes from Saviynt.

Pavan16
New Contributor III
New Contributor III

Able to solve the problem by removing the CALL TestProc(), now I can write back to DB.