We have a Custom Object 'Target' In our application.It has total 5 record types and each record type has respective duplicate rule. The purpose of the the custom object is to set the target for particular Financial Year.Meaning we create only 12 records for each record type.
For this We have 3 fields which are used in all record types.
1.Financial Year 2.Financial Quarter 3.Target Type(Value=Monthly)
above 3 fields are using in all record types & Matching Criteria of Duplicate Rule.we have 4 record types whose matching rule includes above 3 fields and 1 additional field which is different based on record type.
There is only one record type 'Science & Tech' whose matching rule contain above 3 field only.
Now problem is when I try to create Science&Tech Record(No Duplicate Record),it throws duplicate error message and shows duplicate record of another record types.I checked the debug log and I've found that it executes duplicate rule for Science &Tech but at the same time it also executes duplicate Rule for other record types.
If I create Science&Tech Record then it allows me to create a record and if the Science&Tech Record is already exists then it should throw the error message.
I am not sure why it is showing other record type records.
Can Someone please suggest how can I avoid this situation?
P.S. I have added Record Type Filter for each Duplicate Rule.