Bug 1318554

Summary: [GSS] [RFE] request to improve error message when rule name is duplicated in spread sheet
Product: [Retired] JBoss BPMS Platform 6 Reporter: Hiroko Miura <hmiura>
Component: Business CentralAssignee: Mario Fusco <mfusco>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: manstis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:06:53 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hiroko Miura 2016-03-17 08:49:01 UTC
Description of problem:


Customer has many decision tables(XLS) with many rules in their project.
When uploading new/modified decision tables, sometimes conflict with rule name with existing one by mistake and then incremental build fails with the following error.

15:05:29,461 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (EJB default - 5) Unable to build KieBaseModel:defaultKieBase
[5,0]: Duplicate rule name: HelloWorld_11
[15,0]: Duplicate rule name: HelloWorld_12

According to message shown in business central, user can know which xls file has this duplicate rule name but hard to know the other file which conflicts with this file.
Customer requested to improve this error message by reporting the file name which conflicts the rule name.


Version-Release number of selected component (if applicable):
6.2.x


How reproducible:

upload multiple spreadsheet(XLS) which has duplicate rule name. 

Steps to Reproduce:
1. upload Sample.xls
2. upload Sample.xls as a different name
3.

Actual results:

the following error is logged in server.log and similar message is shown in business central as well.

15:05:29,461 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] (EJB default - 5) Unable to build KieBaseModel:defaultKieBase
[5,0]: Duplicate rule name: HelloWorld_11
[15,0]: Duplicate rule name: HelloWorld_12


Expected results:

Please kindly report exact asset name which has duplicate rule name.


Additional info: