Support Article
Declare-index rule producing two records instead of one
SA-21707
Summary
Two different deferred-saves generate a "WRITE INDEX" event in the tracer. Two index class records are produced when only one is expected.
Error Messages
Not Applicable
Steps to Reproduce
Include a deferred-save to produce a WRITE INDEX event in Work-.SaveAttachment, and another one in RecalculateAndSave activity.
Root Cause
Having two "WRITE INDEX" events is normal, and one can be expected each time a deferred-save is performed if property is changed that is mentioned on a declare-index rule. However, the multiple "WRITE INDEX" events should get coalesced by the system into one record in the index table, but two different pages, each containing the same object, were being used as the step page.
Resolution
Use the same work page throughout the transaction rather than using a second page.
Published April 4, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.