Catalog Item Stuck in a Checked Out State

Josh Johnson
Giga Expert

I have an item that was edited in Catalog Builder, then submitted. It's status immediately went to "Checked Out". After waiting a few hours, I looked again and it was still "Checked Out". I attempted to edit it and got the message you see below.

find_real_file.png

 

I went and looked at the Record Producer in Maintain Items and there it said it was in the process of being published. There was no button to "Cancel Checkout". 

find_real_file.png

 

I waited another 12 hrs and nothing changed. It still said "Checked Out" in the Catalog Builder and "Publishing" in Maintain Items. I went to look at the Record Producers and saw 2 entries, on is the one publishing, the other says "Reviewed".

find_real_file.png

Neither will let me let me update them, change their status, or generally do anything. Any suggestions to resolve this? Thanks!

10 REPLIES 10

David A_ Haught
Tera Contributor

We are having the exact same problem in San Diego.  I have scoured the web - no solutions found yet.

-Dave H.

Jaap
Tera Expert

Hi Josh,

Did you find any answer in the meantime? Facing the same issue right now.
Regards,

Jaap

Was my comment helpful? Please mark as such! 🙂

Bharatha
Tera Contributor

Hey Josh,

I used to run into this issue quite often and we use Tokyo. Here is the fix, follow the steps below. You will need admin access to complete these steps.

  1. Give it a few mins for all your updates to the catalog item to actually save.
  2. Refresh/Reload catalog builder page a few times, if the state continues to show as Checked out, go to next step.
  3. Use Context menu to copy the sys_id of your catalog item.Get sys_id.png

     

  4. Open your instance in another browser, Navigate to System Definition -> Scripts - BackgroundScripts.png
  5. Be sure to replace the sys_id place holder with your sys_id obtained at Step 3. Run this script. 

 

var cat = new GlideRecord('sc_cat_item');
cat.addQuery('sys_id=your_Sys-ID_here');
cat.autoSysFields(false); //Will avoid updating System. fields of the table used
cat.query();
if(cat.next()){
cat.setValue('checked_out',false); //Will set Checked out state to False
cat.setWorkflow(false); //Will override any related Business Rules from stop the updates
cat.update();
}

 

After running this script, Checked out state of the catalog item will be set to false and this item will again be available for edits and tests. This method has worked for me. Also, I noticed all the updates I had made to the catalog item before executing this script were saved.

I validated the catalog item is not listed as Checked out as well. Ran the script just in case it is a display issue. However, this did not help to allow the deleted records to be restored.