The Zurich release has arrived! Interested in new features and functionalities? Click here for more

tiagomacul
Giga Sage

Temos um Catalog Item (sc_cat_item ou sc_cat_item_producer)  que travou em Publishing ( tiagomacul_1-1689859078572.png) e desde ontem não finaliza

 

tiagomacul_0-1689859065133.png

 

A edição fica bloqueda

tiagomacul_0-1689860618691.png

 

 

Qual a solução? Boa pergunta se souber, se encontrar uma solução oficial documenta por favor comente.

Se houver não a encontramos, encontramos outras similares e nos baseamos nelas. How ever...

 

A mensagem apresentada:

"This item is in the process of being published. Please do not edit the item"

 

We have a Catalog Item that is displaying the following message each time it's opened:

 

"This item is in the process of being published. Please do not edit the item"

 

Do que foi possível identificar pode ser usado para os items

Catalog Item

Maintain Item

Record Producer

 

Description Print
Sintoma / symptoms tiagomacul_3-1689859354307.png

 

tiagomacul_2-1689859322896.png

 

SOLUÇÃO SOLUTION

01. Copie o sys_id do item

 

Copy sys_id

 

 

 
02. >> All > System Definition > Scripts - Background  tiagomacul_4-1689859451522.png

 

03. Execute o código ao lado

 

 

tiagomacul_5-1689859683052.png

 

 

E é isso ai! Este workarround solucionou!

 

Fica abaixo o código para você poder copiar e colar
var sys_id = 'e1ba3411db0011113d11b11ba19111e0'; //sys_id of your item
var grrp = new GlideRecord('sc_cat_item'); //Glide Record
grrp.get(sys_id); //Search by sys_id

gs.info("===> " + grrp.state ); //Control

grrp.state = 'published'; //setting value
grrp.update(); //update
 
Know more:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1122801

 

 

 

 

 

Version history
Last update:
‎07-20-2023 06:44 AM
Updated by: