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

AD Provisioning Failing with Parsing escape character

mbh_it
Regular Contributor II
Regular Contributor II

Hello Team,

I am getting following error in logs, the JSON is attached. 

Can someone guide me and rectify my JSON details.

Getting following error:
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.476498552Z stdout F 2023-10-19 12:48:33,476 [quartzScheduler_Worker-9] DEBUG ldap.SaviyntGroovyLdapService - Binding map is..[ServiceAccountOwnerMap:[:],password:,task:com.saviynt.ecm.task.ArsTasks : 44,manager:SaviyntSupportAgent2,cnRDN:CN=Doe Jonn,cn:Doe John,user:Doe.John@abc.com,randomPassword:,account:doe.john@abc.com,managerAccount:null,out:java.io.PrintWriter@486780c7,]"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482264082Z stdout F 2023-10-19 12:48:33,482 [quartzScheduler_Worker-9] ERROR ldap.SaviyntGroovyLdapService - Error while creating account doe.john@abc.com in AD - Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482274682Z stdout F SimpleTemplateScript4.groovy: 15: unexpected char: '\' @ line 15, column 48."
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482277082Z stdout F \"${if(user.enddate != null) {\"A B"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482278782Z stdout F ^"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482280382Z stdout F "
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482282182Z stdout F 1 error"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482283782Z stdout F "
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482285982Z stdout F groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482287882Z stdout F SimpleTemplateScript4.groovy: 15: unexpected char: '\' @ line 15, column 48."
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482289582Z stdout F \"${if(user.enddate != null) {\"A B"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482291282Z stdout F ^"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482292782Z stdout F "
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482294482Z stdout F 1 error"
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482296082Z stdout F "
"2023-10-19T12:48:34.386+00:00","ecm-worker","","","","2023-10-19T12:48:33.482297982Z stdout F at

 

maheshbhoi_it_0-1697726513234.png

[This post has been edited by a Moderator to remove sensitive information.]

 

1 REPLY 1

mbh_it
Regular Contributor II
Regular Contributor II

Hello All,

This is resolved with replacing if with following statement for company

"company": "${user.enddate != null ? 'A B' : ''}",

Thanks

Mahesh