Record Producer Not Editable

Austine
Tera Contributor

Hello everyone,

We have a Record Producer 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". That's, all the fields on the form such as Name, Table name, State, Short description, Script etc. can not be edited because they are all grayed out.  What could have caused this problem, and how can we resolve it please?

 

Thanks.

1 ACCEPTED SOLUTION

Michael Jones -
Giga Sage

On the record producer, check the value of the field "State" and see if it is set to "publishing". If so, you will need to update the record to be in a published state. This can happen when a publish action from catalog builder doesn't complete properly. 

You can use a background script like this, just update with the sys_id of your record producer

var sys_id = '0d61280e07eae850c5cff1e08c1ed0b1'; //sys_id of your record producer
var rp = new GlideRecord('sc_cat_item_producer');
rp.get(sys_id);

rp.state = 'published';
rp.update();

I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

 

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

View solution in original post

3 REPLIES 3

Michael Jones -
Giga Sage

On the record producer, check the value of the field "State" and see if it is set to "publishing". If so, you will need to update the record to be in a published state. This can happen when a publish action from catalog builder doesn't complete properly. 

You can use a background script like this, just update with the sys_id of your record producer

var sys_id = '0d61280e07eae850c5cff1e08c1ed0b1'; //sys_id of your record producer
var rp = new GlideRecord('sc_cat_item_producer');
rp.get(sys_id);

rp.state = 'published';
rp.update();

I hope this helps!

If this was helpful, or correct, please be kind and mark the answer appropriately.

Michael Jones - Proud member of the GlideFast Consulting Team!

 

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Hi Michael,

Thank you for the above information, it helps resolve the state to "published".

EricDohr
ServiceNow Employee
ServiceNow Employee


Any chance you are using Catalog Builder and the record producer is checked out?