Knowledge Article same Activity Log showing twice

sayan-ghosh
Tera Contributor

Hi Team,

I have recently observed in the Knowledge Article, whenever I am trying to Publish an Article from Retire.

The Activity log showing two times(Please find the below screenshot)

sayanghosh_1-1747547635911.png

What is the issue

 

 

4 REPLIES 4

Robert H
Mega Sage

Hello @sayan-ghosh ,

 

There can be a multitude of reasons for that. Have you created or changed any Business Rules related to Knowledge Articles recently, or the Flow/Workflow for publishing them?

 

Regards,

Robert

Hello,

the issue is resolved.
There is a OOB BR(Update Replacement Article References)
Which is using current.update().
I have added current.setWorkflow(false)

After that the issue is resolved

Community Alums
Not applicable

@sayan-ghosh ,

Great question — this is a common scenario when working with location hierarchies in ServiceNow.

OOTB Reporting Limitations:
The standard reporting tool in ServiceNow doesn’t support recursive dot-walking through multiple levels of a hierarchical field like location.parent directly in a single filter. So, as you noticed, filtering on location.parent only checks one level up.

Recommended Approach:

  1. Use a Scripted Filter or Business Rule to Flatten the Hierarchy:

    • Create a new field (for example, a custom field called top_level_location or location_path) on the Incident table that stores the full path of locations or the ultimate parent location.

    • You can populate this field via a Business Rule or Script Include that runs when an incident is created or updated, walking up the location hierarchy until the top parent is found.

    • Then you can easily filter your reports on that field (e.g., top_level_location = Location A), which will include all incidents from child locations as well.

  2. Use a Scripted Report Source:

    • If you want to keep everything dynamic, you can write a Scripted Report Source where you query the cmn_location table recursively to get all child location IDs of the selected parent.

    • Then filter incidents with location IN (all child location IDs + parent location ID) in that scripted source.

    • Your report uses this Scripted Report Source.

  3. Use Database Views or Performance Analytics (if applicable):

    • If your instance has these enabled, you can build more advanced reporting using views or data collectors that flatten the hierarchy for reporting purposes.

SumanthDosapati
Mega Sage
Mega Sage

@sayan-ghosh 

This might be because of either a BR/flow doing the same twice or a single BR having current.update()

 

Regards,

Sumanth