- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 05:59 AM
Good day everybody,
We have an integration for Change Request table that inserts manually the Import set row from Scripted REST API and the mode is synchronous.
On both update and insert Transform maps that we use for the Change request table the 'Run business rule' field is checked false!
Whenever we try to update the state of a change request via this API, it responds with an error in this format:
{
"error": {
"message": "Error in processing request!",
"detail": "Operation against file 'change_request' was aborted by Business Rule '<BR that inserts import set row>^<SYS ID of import set row>'. Business Rule Stack:<BR that inserts import set row>,Transform synchronously,State model - Can change state?"
},
"status": "failure"
}
I have checked the custom BR and that one only starts the processing by creating the import set row.
The other one, 'Transform synchronously' BR uses
Changing from New to Assess does NOT trigger this error, but it runs business rules (Approval request created).
Changing from New to Authorize and later triggers this error, so it runs business rules.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:22 AM
Nevermind, I have found the issue. Somewhere in the code we used target.update() which reran the business rules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 06:22 AM
Nevermind, I have found the issue. Somewhere in the code we used target.update() which reran the business rules.