Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Version field is empty in knowledge articles

SSantacroce
Tera Expert

Hello,

I have the necessity to give some users the permission to checkout and edit knowledge articles in my instance -

the problem is I've noticed that most of the articles in both my developer and production instances have their version field empty, so they can only be retired, not checked out.

I don't know why this has happened, I've read it can happened when you import them from somewhere else, but every article has only been imported once to the production instance, and still the ones in the developer instance are missing their version.

 

Does anyone know how I can fix this? Thanks!

1 ACCEPTED SOLUTION

SSantacroce
Tera Expert

Hello everyone,

I was able to fix the issue! 

I've checked in with my team and apparently the instance was cloned to another instance, causing this issue. I used a background script that created a record in the kb_version table and linked it to the article record!

View solution in original post

15 REPLIES 15

Hi @BhanupriyaK6656 ,
What I did was first delete every record from the kb_version and then write a background script that creates a record for each knowledge article that is published. I set version to 1.0 (or 1, I don't remember, test it out on a few single records before doing it for all of them) and then there's a reference field to the knowledge article that you fill out with the sys_id of the article. That's mostly it, I think. Checl out the kb_version table to understand it more clearly