Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

Error message quickly disappear

Kamva1
Tera Contributor

Hi Forum,

 

Can you please assist, I have created a BR to show an error message on particular conditions. The error message displays and quicly vanishes. See the configuration below:

Screenshot 2026-11-12 145253.pngScreenshot 2026-11-12 145228.png

 

Thank you!

6 REPLIES 6

Hemanth M
Tera Sage

Hi @Kamva1 ,

 

Can you comment out the abort action line (Line 3) and verify if its causing this issue?

 

 

Kamva1
Tera Contributor

Hi @Hemanth M,

When I comment line 3 the operation goes through, which is what I am trying to prevent

Vishal Jaswal
Tera Sage

Hello @Kamva1 

Use below:

(function executeRule(current, previous /*null when async*/) {

    gs.addErrorMessage('Cannot Resolve Case ' + current.number + ' while associated alert is still active!');
    current.state = previous.state;
    current.setAbortAction(true);

})(current, previous);


Validation Results:

VishalJaswal_0-1794505087922.png

 

Hemanth M
Tera Sage

Hi @Kamva1 ,

 

I Know that, i would like see the error message behavior with /without Abort statement