08/02/2023 10:39 AM
Hi Team,
I am trying to provision an account to a Database application using an insert query in the CreateAccountJSON in a DB connector. The query is working when run directly in the application, but from saviynt it fails with an error statement - Exception occured while Excecuting Query\n.
The error is very generic - does not specify what is the exception exactly. I tried with a simple insert query with hardcoded values to insert. But I am seeing the same error everytime.
Any suggestions as to what might be the issue here?
08/02/2023 11:05 AM
Hi @SUMAIYA_BABU ,
Share your createaccountjson with dynamic as well as hardcoded value.
08/02/2023
11:09 AM
- last edited on
08/08/2023
07:26 AM
by
Sunil
With hardcoded values:
{
"createaccountqry": "INSERT INTO USERS (ID,VERSION,FIRSTNAME,SURNAME,LOGIN,LOGGEDIN,STARTDATE,DOMAIN,EMAIL,QUALIFICATION,EMPLOYEE) VALUES(SYS_GUID(),'1','Savtest','user072703','savtest.user072703','SAVIYNT','02-AUG-23 01.09.08.000000000 PM','FR','savtest.user072703@xxxxxxxxxxxxxx.com','ASSISTANT HR','072703');"
}
{"createaccountqry":"INSERT INTO USERS (ID,VERSION,FIRSTNAME,SURNAME,LOGIN,LOGGEDIN,STARTDATE,DOMAIN,EMAIL,QUALIFICATION,EMPLOYEE) VALUES(SYS_GUID(),'1','${user.firstname}','${user.lastname}','${user.customproperty1}','SAVIYNT',TO_TIMESTAMP(TO_CHAR(SYSTIMESTAMP, 'DD-MON-RR HH.MI.SS.FF9 AM'), 'DD-MON-RR HH.MI.SS.FF9 AM'),'FR','${user.email}','${user.jobDescription}','${user.employeeid}')"}
[This message has been edited by moderator to mask domain name]
08/02/2023 11:51 PM
Hi @SUMAIYA_BABU ,
Which DB you are using in target? MYSQL or MSSQL or ORACLE or other?
08/02/2023
10:03 PM
- last edited on
08/08/2023
07:27 AM
by
Sunil
@SUMAIYA_BABU are you able to get values for SYS_GUID() when you do a select? Also, can you please try with the below query? can you pls share the complete logs?
{
"createaccountqry": "INSERT INTO USERS (ID,VERSION,FIRSTNAME,SURNAME,LOGIN,LOGGEDIN,STARTDATE,DOMAIN,EMAIL,QUALIFICATION,EMPLOYEE) VALUES(UUID(),'1','Savtest','user072703','savtest.user072703','SAVIYNT','02-AUG-23 01.09.08.000000000 PM','FR','savtest.user072703@xxxxxxxxxxxx.com','ASSISTANT HR','072703');"
}
[This message has been edited by moderator to mask domain name]
08/03/2023 06:45 AM
08/03/2023
09:40 PM
- last edited on
08/08/2023
07:28 AM
by
Sunil
{
"createAccountQry": "INSERT INTO USERS (ID,VERSION,FIRSTNAME,SURNAME,LOGIN,LOGGEDIN,STARTDATE,DOMAIN,EMAIL,QUALIFICATION,EMPLOYEE) VALUES(SYS_GUID(),'1','Savtest','user072703','savtest.user072703','SAVIYNT','02-AUG-23 01.09.08.000000000 PM','FR','savtest.user072703@xxxxxxxxxxxxx.com','ASSISTANT HR','072703');"
}
[This message has been edited by moderator to mask domain name]
08/04/2023 07:05 AM
@rushikeshvartak This is what I originally had. But this is giving the same error - Error while executing query.
08/08/2023 06:50 AM
@naveenss Yes, I am able to use SYS_GUID() directly from the DB. The same query is working directly from the DB.
08/08/2023 07:12 AM
Hi @SUMAIYA_BABU ,
Raise FD ticket and check with Saviynt, is there any issue with calling SYS_GUID() function from Saviynt. Sometime some words are blocked in json, while saving it through UI.
08/08/2023 07:27 AM
I will check this. Thanks Pravin.