Support Article
Sequence of case IDs generated is incorrect
Summary
When a user creates cases, the case IDs generated are not sequential.
Example of the sequence of the case IDs generated: TAX-E 2001, TAX-E-9 and TAX-E-3145.
Error Messages
Not Applicable
Steps to Reproduce
Create cases manually or via cases Application Program Interface (API).
Root Cause
A defect in Pegasystems’ code or rules. This is an expected behavior due to the modified Application Program Interface (API) on Pega 8.3. On receiving a request for the creation of case, a batch size of 1000 is assigned for that particular node as per he Dynamic System Setting (DSS). On request from another node, the next batch size, 1001-2000 is used. This is made to enhance the performance when the user needs to migrate millions of work objects and when the ID generation might get slow.
Resolution
Perform the following local-change:
Use the below new DSS to change the batch size as per the requirements:
DSS: idGenerator/defaultBatchSize
Set the value to 1
Note: The batches remain the same until all the IDs in the batch are completely utilised before a request for a new batch. This occurs when the batches are already allotted. When a request for a new batch occurs the modified DSS comes into picture and allot the batch sizes accordingly.
Published May 1, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.