Operation against file 'u_attribute' was aborted by Business Rule 'GQRM_Restrict Duplicate attribute
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 01:44 AM - edited 10-17-2024 02:18 AM
I have a BR running to abort duplicate values on attribute table
This is giving me two error message and one info message. I have requirement to show only one error message mentioned in the script
AND
It is giving info message as "attribute inserted" - but because of the below business rule the attribute is not getting inserted so i am not sure why this message is coming
Business Rule : Before Insert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 03:42 AM
With this Business Rule inactivated, are any messages shown using the same test case? Is the name of this Business Rule "GQRM_Restrict Duplicate attribute"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 08:15 AM
@Brad Bowman "Attribute inserted" message shown when deactivating this BR. Yes the name of br is "GQRM_Restrict Duplicate attribute"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 08:39 AM
The only thing I see about your script is that you don't really need the else block as that will happen anyway if a matching record on your custom table is found. None of these message are out of box behavior, even on a custom table - there's not an '...inserted' info message or the longer error message, though that would be nice rather than the out of box behavior 'invalid insert' without a clue as to why. You have some customization in your instance, so you'll have to check all Business Rules, Script Includes, and System UI Messages for what might be triggering these - you can search on the partial static text of each to make it easier. Either setWorkflow(false) is being bypassed/ignored, or there's something other than another Business Rule running on insert of this table.