Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Duplicate Expense Lines created when "glide.cost_mgmt.process_task_top_task" System Property is enabled - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Duplicate Expense Lines created when "glide.cost_mgmt.process_task_top_task" System Property is enabled
KB0778172

Duplicate Expense Lines created when "glide.cost_mgmt.process_task_top_task" System Property is enabled


813 Views Last updated : Jul 19, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

You are seeing Duplicate Expense Lines being created when the "glide.cost_mgmt.process_task_top_task" System Property is set to true.

There is one Expense Line on the Project Task. Then there is another duplicate Expense Line which is on the 'Top Task' Project.

 

Example:

  • You create an Expense Line on PRJTASK0001 which has Top Task = PRJ00002
  • You then see that PRJ00002 has an Expense Line with duplicate values but the Expense Line 'Number' is different.

Cause

 

This is the expected System Behaviour when the "glide.cost_mgmt.process_task_top_task" System Property is set to true.

 

Resolution

If you would like all Expense Lines to be visible from the 'Top Task' Project

  • To achieve this, you should enable the "glide.cost_mgmt.process_task_top_task" System Property.
    • Please be aware that there will now be two Expense Lines created when you are adding an Expense Line on your Project Tasks.
    • One will be created on the Project Task. The other will be created on the Project.
    • The Project 'Actual cost' Value will remain correct even though there is now two Expense Lines.
  • You may also want to ensure that your Expense Lines Related List on the Project Form is now only retrieving Expense Lines with the following query:
    • Expense Line.Task = Project Number (Example; Expense Line.Task = PRJ00002)
    • This should be the default Out Of Box configuration for this Related List

 

If you do not want the above behaviour. Then you should be sure to set the "glide.cost_mgmt.process_task_top_task" System Property to false.

  • You may want to consider setting the "com.snc.project.rollup.cost" System Property to true in this scenario.
    • This will mean that the Actual cost is now calculated on every Project Task as well as the Project and it will be visible from each sub-level.
  • This will mean that there are no duplicate Expense Lines being created. However, please be aware that you will not be able to see the Project Task Expense Lines on the main Project when using this configuration. 
  • Instead you will need to go to each Project Task to find the related Expense Lines.
  • As a workaround for this, you can add a Defined Related List to the Project Form that is querying  the Expense Line Table for the following:
    • Task.Top Task = Project Number (Example; Task.Top Task = PRJ00002)

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.