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

Use Case / Problem Statement: 

We are using syntax - "${user.customproperty58 != null? user.customproperty58 : ''}" while populating one attribute while provisioning but instead of blank value complete syntax is updated. 

 

Create account JSON:

 

{

    "accountExpires": "0",

    "cn": "${cn}",

    "name": "${cn}",

    "displayName": "${user.displayname}",

    "employeeNumber": "${user.customproperty65}",

    "employeeID": "${user.employeeid}",

    "info": "Account created through IAM on ${(new java.text.SimpleDateFormat('yyyy-MM-dd HH:mm:ss').format(new Date()))}",

    "pwdLastSet": "0",

    "objectClass": ["top", "person", "organizationalPerson", "user"],

    "sAMAccountName": "${user.systemUserName}",

    "extensionAttribute12": "${user.customproperty61}",

    "msDS-cloudExtensionAttribute18": "${user.customproperty58 != null? user.customproperty58 : ''}",

    "msDS-cloudExtensionAttribute19": "${user.customproperty63}",

    "msDS-cloudExtensionAttribute20": "${user.customproperty64}",

    "businessCategory": "${user.customproperty60}",

    "userPrincipalName": "${user.systemUserName}@origin.com.au"

}

qXQIE1OlUvJ4T8jUWW7XrLGaGIP6LwJwoQ.png

Logs: 2021-04-14 11:01:15,140 [quartzScheduler_Worker-3] ERROR ldap.SaviyntGroovyLdapService - Error while creating account Bot-RobotR2D5 in AD - Encountered "!=null?user.customproperty62:\'\'}\",\r\n\t\"msDS-cloudExtensionAttribute19\": \"" at a69e8d97-e70d-4396-9671-3bc0e33a6ee3[line 13, column 67]

Was expecting one of:

    "[" ...

    "}" ...

org.apache.velocity.runtime.parser.TemplateParseException: Encountered "!=null?user.customproperty62:\'\'}\",\r\n\t\"msDS-cloudExtensionAttribute19\": \"" at a69e8d97-e70d-4396-9671-3bc0e33a6ee3[line 13, column 67]

Was expecting one of:

    "[" ...

    "}" ...

        at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:131)

 

Resolution : 

The issue is fixed after making the below changes

  • SUPPORTEMPTYSTRING = FALSE ( FOR AD connector )  in the connection configuration
  • useVelocityTemplate = false in the externalconfig.properties file.
Version history
Last update:
‎04/03/2023 10:32 AM
Updated by:
Contributors