cancel
Showing results for 
Search instead for 
Did you mean: 

BRM Urgent Help : Error - Service Name Has to be unique in component scope

Former Member
0 Kudos

Dear All,

I am getting below error in below scenario :

1 : I am using Rule Composer Developement for BRM.

In Rule Composer Developement , there are three ways

1 : Using Flow Rule Set

2 : Using Rule Set

3 : Using Reusable Rule Set

I am getting below error in option 1 and option 2.

*Caused by: com.sap.engine.interfaces.sca.spi.PluginException Service name has to be unique in component scope.*

Steps For ReProducing the above Error :

Step1 : I have created sample project using option1 (Using Flow Rule Set)

Step 2 : I have 2 rules and 2 decision table and added in main flow.

Step 3 : I have created webservice for flowruleset prj.

Step 4 : Checked webservice is running fine in wsnavigator

Step 5 : Gave required input and getting output correctly

Step 6 : Added Rules in process (BPM)

Everythig is working fine.

Now i am updating rules in same project and create webservice again.

For that i have delete old webservice and create it again.

Build is working fine.

At the time of deployment , i am getting error :

*Caused by: com.sap.engine.interfaces.sca.spi.PluginException Service name has to be unique in component scope.*

I have undeployed the rule composer applicatio and then tried getting same error

I have created other flow rule set anf deploy , getting same error

I have cleaned the application , getting same error.

I am really frustrated and created new project and done all the steps and working fine.

But my query is if some things is update , then everytime needs to new project ?

As per business scenario in my project , rules is changed any time.

Please suggest

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Patel,

Once you expose a Flow Ruleset as a webservice, and use that webservice in BPM process, you are always allowed to make changes to the Rules project and redeploy it. And there is no need for you to delete the old webservice. As the webservice will not change even if you make changes to the rules. Until and unless the XSD that you have used to write rules is changed, there is no need for us to delete old webservice and create new webservice.

And even if you delete the old webservice, ideall you should not face any problems. And the error message that is being thrown suggests that the service name you are using to create the new webservice is already there in the component and to mitigate this you need to provide a new service name while creating the webservice.

Hope this helps you.

Thanks and Regards,

Santosh Giri