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

Fail to import user after running the job: Users Import (Complete) from Database (UserImportFullJob)

RMohanty
New Contributor
New Contributor

Hi All,

We are trying to importuser in through User Import XML file content.

<dataMapping>
<sql-query description="This is the Source DB Query" uniquecolumnsascommaseparated="username">
<![CDATA[SELECT USERID as'Username',FIRSTNAME,LASTNAME,MANAGER,'1' as 'Status',AGENCYNAME as 'DisplayName' from [dbo].[STGOIM]]]>
</sql-query>
<importsettings>
<zeroDayProvisioning>false</zeroDayProvisioning>
<generateEmail>false</generateEmail>
<userNotInFileAction>NOACTION</userNotInFileAction>
<checkRules>false</checkRules>
<buildUserMap>false</buildUserMap>
<generateSystemUsername>false</generateSystemUsername>
<userOperationsAllowed>UPDATE</userOperationsAllowed>
<userReconcillationField>username</userReconcillationField>
</importsettings>
<mapper description="This is the mapping field for Saviynt Field name">
<mapfield saviyntproperty="firstname" sourceproperty="FIRSTNAME" type="character"></mapfield>
<mapfield saviyntproperty="lastname" sourceproperty="LASTNAME" type="character"></mapfield>
<mapfield saviyntproperty="username" sourceproperty="Username" type="character"></mapfield>
<mapfield saviyntproperty="owner" sourceproperty="Username" type="character"></mapfield>
<mapfield saviyntproperty="enabled" sourceproperty="Status" type="number"></mapfield>
<mapfield saviyntproperty="statuskey" sourceproperty="Status" type="number"></mapfield>
<mapfield saviyntproperty="DisplayName" sourceproperty="DisplayName" type="character"></mapfield>

</mapper>
</dataMapping>

Note - The job is getting success with no users getting imported.

RMohanty_0-1675243004833.png

Any leads will be appreciable.

Thanks!

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

<mapfield saviyntproperty="displayname" sourceproperty="DisplayName" type="character"></mapfield>


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Thank You @rushikeshvartak for your prompt response.

Tried running the job after correcting the file with:

<mapfield saviyntproperty="displayname" sourceproperty="DisplayName" type="character"></mapfield>

Still, the users are not getting import.

RMohanty_0-1675247426991.png

Thank You

share logs


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi @rushikeshvartak ,

We are trying to extract the log but not able to capture the log for that particular time stamp.

Filtering service name with ecm and ecm-worker aswell.

Is there any other way we can filter for particular timestamp...as i dont see any particular error log.

 


{"log":"2023-02-01 10:26:42,618 [quartzScheduler_Worker-3] ERROR services.ImportSAvDataUserService - Error in Users Import - Import failed as no Users were inserted or updated\n","stream":"stdout","time":"2023-02-01T10:26:42.618688083Z"}


{"log":"2023-02-01 10:26:42,607 [quartzScheduler_Worker-3] DEBUG services.ImportSAvDataUserService - Proceed to Import for records - \u003e [A24150, SALESTHREEA, 1, CHRIS KOHER INSURANCE AGENCY 6, 1, IAUSERIDTWO, A24150] : true\n","stream":"stdout","time":"2023-02-01T10:26:42.607873114Z"}
2023-02-01, 03:56 pm
ecm-worker
{"log":"2023-02-01 10:26:42,607 [quartzScheduler_Worker-3] DEBUG services.ImportSAvDataUserService - Executing query select userkey as userkey from users where username = :reconvalue , reconvalue=A24150\n","stream":"stdout","time":"2023-02-01T10:26:42.607937861Z"}
2023-02-01, 03:56 pm

SELECT USERID as'Username',FIRSTNAME,LASTNAME,MANAGER,'1' as 'Status',AGENCYNAME as 'DisplayName' from [dbo].[STGOIM]
ecm-worker
{"log":"2023-02-01 10:26:42,609 [quartzScheduler_Worker-3] DEBUG services.ImportSAvDataUserService - Proceed to Import for records - \u003e [A24151, SALESTHREE, 1, IAUSERIDAONE AGENCY, 1, IAUSERIDAONE, A24151] : true\n","stream":"stdout","time":"2023-02-01T10:26:42.60931293Z"}
2023-02-01, 03:56 pm

Thank You

 

Run SQL Query from Analytics - Create New Anlaytics - SQL -  attach external connection (Userimport connection) add query and see if your query is working


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.