and more in a single search tool across platforms. Read the announcement here. |
05/23/2023 12:11 AM
Hi Team,
We have a column called Update_Date in DB and we are trying to import through ACCOUNTSIMPORT.
we are able to fetch all the attributes and but not able to import the Update_Date and getting this error .
Mapping:
<mapfield saviyntproperty="accounts.created_on" sourceproperty="Update_date" type="date"></mapfield>
Error Message :
No such property: Update for class: groovy.sql.GroovyRowResult |
05/23/2023 12:40 AM
Column alias should not contain underscore
05/23/2023 01:20 AM
@rushikeshvartak We have 30 columns and all columns have underscore and able to fetch those into Saviynt but only update_date not able to fetch.
05/23/2023 01:38 AM
Does date in required format ?
07/04/2023 07:58 AM
07/05/2023 02:32 AM
Dear @AravindK ,
I have tried solution provided by @rushikeshvartak and it worked for me. I want to clarify some details about configuration in accountsimport JSON that made it possible:
1. Sourceproperty in the mapper entry should not contain underscore.
2. Therefore, sql-query included in CDATA must contain alias for every column whose name has got an underscore.
Example:
<dataMapping>
<sql-query description="This is the Source DB Query" uniquecolumnsascommaseparated="name" >
<![CDATA[select SURNAME,EMAIL,EMPLOYEE_CODE AS EMPLOYEECODE from TABLENAME]]>
</sql-query>
<mapper description="This is the mapping field for Saviynt Field name" accountnotinfileaction="Suspend" deleteaccountentitlement="true" ifusernotexists="noaction">
<...>
<mapfield saviyntproperty="accounts.customproperty2" sourceproperty="SURNAME" type="character"></mapfield>
<mapfield saviyntproperty="accounts.customproperty3" sourceproperty="EMAIL" type="character"></mapfield>
<mapfield saviyntproperty="accounts.customproperty4" sourceproperty="EMPLOYEECODE" type="character"></mapfield>
<...>
<dataMapping>
<sql-query description="This is the Source DB Query" uniquecolumnsascommaseparated="name" >
<![CDATA[select SURNAME,EMAIL,EMPLOYEE_CODE AS EMPLOYEECODE from TABLENAME]]>
</sql-query>
<mapper description="This is the mapping field for Saviynt Field name" accountnotinfileaction="Suspend" deleteaccountentitlement="true" ifusernotexists="noaction">
<...>
<mapfield saviyntproperty="accounts.customproperty2" sourceproperty="SURNAME" type="character"></mapfield>
<mapfield saviyntproperty="accounts.customproperty3" sourceproperty="EMAIL" type="character"></mapfield>
<mapfield saviyntproperty="accounts.customproperty4" sourceproperty="EMPLOYEECODE" type="character"></mapfield>
<...>
07/06/2023 04:57 AM - edited 07/06/2023 04:57 AM
PD: Could you be so kind to mark the most detailed and correct reply as the solution in order to help other colleagues within the community to solve this issue?
Many thanks in advance