Item globalSortOrder has a value -1

Jonathan Rivera
Jonathan Rivera
  • Updated

Author: Jonathan Rivera

Date: December 20, 2023

Audience: Everyone

Environmental details: Self-Hosted and Cloud

Summary: 

The globalSortOrder for items is -1 when retrieving items via the API.

For example,

Screenshot 2023-12-20 at 2.17.11 PM.pngf

 

Solution:

This is working as expected. The moves complete normally, but when there are a lot of moves, it may take longer for that field to update.

  1. Wait for the globalSortOrder to update
  2. Run a project cleanup if needed

Cause:

The global sort order of -1 is expected. This is temporarily set to -1 for items that are being sorted while the document node sort job is running. If a lot of work is being done rapidly via the API, such as creating, deleting, or moving items, you will occasionally see this value if you are immediately trying to read the global sort order. The sort job runs every minute.

Prevention:

This field is a database reference field, not meant to be used in this manner.

Related Articles, Work orders, Zendesk tickets, Defects, etc. 

  • Zendesk Ticket: #74542
  • Work Order: CON-39553 - Atari(DE) - globalsortorder has value of -1

Additional Information/Metadata:

  • API
  • Batch move
  • Batch deletion

Feedback: Please leave feedback in the comments below.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.