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

SAP HANA Add access error

bala
New Contributor II
New Contributor II

Hi Team,

When we add SAP Hana role through BR. we are getting error "Failed to execute: Create index RuleIndex_username on Users(username) because: Duplicate key name 'RuleIndex_username'"

I have checked if there is any username duplicate in user table and other rule related tables , I don't see any duplicate values in username.  Any idea on this error? Thanks. 

Detailed log: 

"ecm","2023-03-30T07:59:53.651+00:00","2023-03-30T07:59:53.103983836Z stdout F 2023-03-30 07:59:53,103 [http-nio-8080-exec-6] INFO hana.HanaRuleService - Creating Index for Users Table for the Columns username"
"ecm","2023-03-30T07:59:53.651+00:00","2023-03-30T07:59:53.152163299Z stderr F 30-Mar-2023 07:59:53.151 WARNING [http-nio-8080-exec-6] groovy.sql.Sql.executeUpdate Failed to execute: Create index RuleIndex_username on Users(username) because: Duplicate key name 'RuleIndex_username'"
"ecm","2023-03-30T07:59:53.651+00:00","2023-03-30T07:59:53.152881223Z stdout F 2023-03-30 07:59:53,152 [http-nio-8080-exec-6] ERROR hana.HanaRuleService - Index already present with index name RuleIndex_username . Hence index not created "
"ecm","2023-03-30T07:59:53.651+00:00","2023-03-30T07:59:53.189291831Z stdout F 2023-03-30 07:59:53,189 [http-nio-8080-exec-6] DEBUG hana.HanaRuleService - Total cond=1"
"ecm","2023-03-30T07:59:53.651+00:00","2023-03-30T07:59:53.192914251Z stdout F 2023-03-30 07:59:53,192 [http-nio-8080-exec-6] DEBUG hana.HanaRuleService - oldDetail--<span style="color: green;font-weight: bold;">If </span>Users.username <span style="color: blue;font-weight: bold;">EQUALS</span> "Eric" <br/> <span style="color: green;font-weight: bold;">Then </span> <br/>Assign SAP Roles::ZSAP_BPC_BTCH_JOB <br /> Birthright : true<br /> Remove Birthright on Fail : false<br /> Hierarchy : false"
"ecm","2023-03-30T07:59:53.651+00:00","2023-03-30T07:59:53.192949352Z stdout F 2023-03-30 07:59:53,192 [http-nio-8080-exec-6] DEBUG hana.HanaRuleService - newDetail--<span style="color: green;font-weight: bold;">If </span>Users.username <span style="color: blue;font-weight: bold;">EQUALS</span> "Harsha" <br/> <span style="color: green;font-weight: bold;">Then </span> <br/>Assign SAP Roles::ZSAP_BPC_BTCH_JOB <br /> Birthright : true<br /> Remove Birthright on Fail : false<br /> Hierarchy : false"
"ecm","2023-03-30T07:59:53.651+00:00","2023-03-30T07:59:53.210204725Z stdout F 2023-03-30 07:59:53,210 [http-nio-8080-exec-6] DEBUG hana.HanaRuleService - blob [NEW_COND_VALUE:Users.username EQUALS Harsha<br>, RULE_OWNERS_CHANGE:NO, OPERATION:MODIFY, INFO_CHANGE:NO, DETAIL_CHANGE:YES, CONDITION_CHANGE:YES, OLD_COND_VALUE:Users.username EQUALS Eric <br>, OWNER_CHANGE:NO, ACTION_CHANGE:NO, DESC_CHANGE:NO]"

The major issue was pending task not generated for the SAP BR access, even they satisfy the condition. 

[This post has been edited by a Moderator to consolidate two posts into one.]

1 REPLY 1

mbinsale
Saviynt Employee
Saviynt Employee

Hi,

What version are you running on? There was a known issue in one of the versions, and a fix has already been made available.

This requires a support ticket to be created and one of our support engineers will work with you to apply the relevant fix.