Business Rule not updating record during Import Set transformation

johnsgp
Mega Expert

I have an import set transformation set up which imports the field kb_knowledge.short_description amongst others.   I also have an advanced "After" business rule looking at inserts and updates on the kb_knowledge table and which alters the same field.

The business rule works if I activate it from the Knowledge Article form (e.g., going to an article from the "Unpublished" menu and clicking Save or Update).

There are log statements in the business rule to prove that it is actually running and changing the field when the business rule runs.   I have checked that these log entries happen during the transformation of the import set.

Yet when I look at the record after the dust settles, it has the value from the import set, not the value from the business rule.

I tried changing the "Order" of the business rule to 1000 so that it runs after everything else (according to Execution Order of Scripts and Engines - ServiceNow Wiki) but it has not helped.

What could be overriding the business rule?   The "History" on the knowledge article does not show an attempt to save the change, so it is as if the current.update() statement is not working in the business rule when it is run during an import set transformation.

5 REPLIES 5

MGanon
Tera Guru
If this issue still exists, try adding your BR calculations to an onAfter script during the import transform. You can also call a Script Includes in the same onAfter