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

Inconsistency in Knowledge Article Workflow Field After Upgrade

George_1
Tera Guru

I’ve noticed an inconsistency in the Knowledge Article workflow field after recent upgrade. When opening a new article form, the workflow sometimes shows as “Pending – Not Yet Started” instead of the expected “Draft.”

Has anyone else experienced this behavior?

 

George_1_0-1780680210645.png

 

11 REPLIES 11

mza-guille
Tera Contributor

Hi George,

I would treat this as two separate questions before changing any workflow configuration:

1. Is the Knowledge record actually in the wrong workflow state?
2. Or is the UI displaying the workflow/stage label incorrectly after the upgrade?

The reason I would separate those is that another reply mentioned Australia Patch 2 and that the stored workflow state appears correct while the displayed stage shows “Not Yet Started”. If the stored value is correct, then changing Knowledge workflow/business logic may make the problem worse.

I would check these items first:

  • On the affected article, verify the actual stored value of workflow_state on the Knowledge record.
  • Compare Classic UI and Workspace behavior for the same article.
  • Test with a brand-new article and with an existing article/new version.
  • Confirm which Knowledge workflow is attached to the Knowledge Base.
  • Check whether the article has an active workflow/context running, not only the display label.
  • Try cache/browser cleanup, but do not stop there if multiple users/browsers reproduce it.

If the database value is Draft but the UI says Pending / Not Yet Started, that points more toward a display/UI/regression issue after upgrade. In that case, I would open a ServiceNow Support case and provide:

  • exact family/patch version,
  • affected Knowledge Base,
  • screenshot from Classic UI and Workspace,
  • actual workflow_state value,
  • whether it happens only on new articles or also existing/new versions,
  • whether the workflow context is active/completed.

If the database value itself is being set incorrectly, then I would review custom Business Rules, UI Actions, flows/workflows, and Knowledge Base workflow configuration.

So I would not recommend changing scripts until you prove whether this is data-state wrong or display-state wrong. That distinction is the important part here.

kaylindurmi
Tera Contributor

ServiceNow seems to have a more recent fix to this issue in KB3090094:

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

 

It's an XML file with a change to the out-of-box script include, WorkflowStageProcessor. It seems that the change mainly adds a _deepCloneChoiceList() method to keep the cached ChoiceList objects from getting corrupted, which was causing incorrect workflow states to display. This is likely why doing a cache flush, or even just clearing the browser's cache, temporarily resolves the issue - at least in our case.

The KB mentions this started in the Australia upgrade but one of the related PRs it mentions, PRB2009991, is a known error for Zurich Patch 10 Hot Fix 3 (https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB3137025). We were experiencing the issue in Zurich so just wanted to mention that. 

 

I believe this may have been a previous fix to the issue potentially: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB3061698

The one above (KB3090094) seems to be a newer, more lasting solution. We applied this fix a couple of weeks ago due to reports of this happening on kb_knowledge and we have not had the issue return.

Wanted to note though that it calls out needing to revert the WorkflowStageProcessor Script Include back to out-of-box once your instance is upgraded to a release/patch that officially includes this fix - Australia Patch 5 or later.