Gatting record not found error after in record producer, after updating record by record producer?

Arjun Kumar Le1
Tera Contributor

Hi Every one,

I am facing an record not found error(in record producer itself not in the targeted record )while submitting a record producer for updating an incident record, please help in this.

the record producer script and screen short as below.

var usrGR = new GlideRecord('incident');
usrGR.addQuery('sys_id', producer.incident);
usrGR.query();
if (usrGR.next()) {
usrGR.short_description = producer.comment;
usrGR.update();
}
gs.info(producer.comment);
current.setAbortAction(true);

 

ArjunKumarLe1_0-1704946562517.pngArjunKumarLe1_1-1704946589332.png

 

 

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Can you try to add a setRedirectURL, so it redirects to your updated incident and not to a new aborted incident?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn