Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Issue while creating admin accounts (CreateAccount JSON ) error

Aparna
New Contributor III
New Contributor III
we have a business requirement to create Admin account is Active directory through Saviynt ARS request using Create Account JSON parameters in Connection.
Once the request is raised for the Admin account for the particular AD the pending task is to be completed through the provisioning Job , the task is not getting completed and being error out .  snippet of the error is below and attaching the error log file for further investigation.
 
Error while creating account in AD - Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed: SimpleTemplateScript40824.groovy: 1: expecting '}', found '+' @ line 1, column 155. oLowerCase().substring(0,11)} +'.'+ if(u ^ 1 error
3 REPLIES 3

DaanishJawed
Saviynt Employee
Saviynt Employee

Hi @Aparna ,

Looks like there is an issue with your create account JSON.

Can you share your Create Account Json?

nimitdave
Saviynt Employee
Saviynt Employee

Looks like you are using groovy expression with if else in the create account json which is not getting evaluated or parsed. To isolate the issue check if the the provisioning is working for normal accounts with existing json and then try with hardcoded values for admin account use case.

Try with fewer if else and then introduce the if else with test each use case. That should help.

 

Aparna
New Contributor III
New Contributor III

Thanks for suggestion it worked for me