We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

current.setAbortAction(true) causes the error message 'Invalid update'

Andrew Pishchul
Giga Expert

Guys,
I got stuck with current.setAbortAction(true) in a business rule... I have a simple business rule on an incident table:
When:

Before

Update:
yes

Condition:
current.category=='Software'&& !current.hasAttachments()

Script:
gs.addInfoMessage("No attached documents found! Operation cancelled.")
current.setAbortAction(true);


But this rule causes and error message 'Invalid update' when I try to save an incident without attachments and with Category='Software'. My custom info message will be displayed as well, but why 'Invalid update' is there???
16 REPLIES 16

Deepika48
Mega Expert

I think  we can use current.setWorkflow(false) , instead of using current.setAbortAction(true);

 

This did the trick for me regarding the infamous "Invalid update"-message! 🙂