"Operation against file 'problem' was aborted by Business Rule 'Transform synchronously^<sys_id>'. Business Rule Stack:Transform synchronously"

Alamelu1
Tera Contributor

Im trying to update the state of the problem record through an import set API transform script. I get an error

"Operation against file 'problem' was aborted by Business Rule 'Transform synchronously^<sys_id>'. Business Rule Stack:Transform synchronously"

How to resolve this?

30 REPLIES 30

NOw lets try to debug BR. GO to debug business rule and then new screen will open. Then try to perform your process for one record and monitor what is happening.


Thanks,
Ashutosh

Hi,

check that BR what it contains? can you share script of that here?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

This is the script of the underlying business rule that gets called.

 

var importSetGr = new GlideRecord("sys_import_set");
importSetGr.get(current.sys_import_set);
var importSetId = importSetGr.getUniqueValue();
var importSetRun = new GlideImportSetRun(current.sys_import_set);
var importLog = new GlideImportLog(importSetRun, "SOAP Transform");
var ist = new GlideImportSetTransformer();
ist.setLogger(importLog);
ist.setImportSetRun(importSetRun);
ist.setImportSetID(importSetId);
ist.setSyncImport(true);
ist.transformAllMaps(importSetGr, current.getUniqueValue());

I realised this is because of the ‘Problem Management Best Practice - Madrid - State Model’ plugin [com.snc.best_practice.problem.madrid.state_model].

 

Problem Management Best Practice — Madrid — State Model was first introduced for the Madrid release and The plugin is activated by default for the new customers.

 

This plugin provides support for state management to control how a problem or problem task is allowed to transition through a predefined list of states.

 

 

Hi,

If this has been resolved.

Kindly close the thread by marking Answer as Correct & 👍Helpful so that it does not appear in unanswered list.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader