Support Article

AutoComplete shows complete result-set only on first time search



The values in the autocomplete not displayed second time. Initially when user accesses auto complete for searching on Screen, autocomplete which is loading through data page is giving all the results.

But after search is done, again if user tries to see all the results in drop-down, only some are displayed.

Error Messages

In Log file:** Section 'TestSec' execution error on page '' of class 'ABC-XYZ-Work'. : For input string: ""

Steps to Reproduce

1.Addautocomplete with source as data page in a section.
2.Add a repeating grid below auto-complete with pagination enabled in grid in same section.
3.On change of auto-complete grid will be populated with respective values.
4.Run case and open auto-complete popup. Observe it shows full list.
5.Select any and let the grid populate.
6.Now open auto-complete popup again. Observe few values are missing on popup scroll.

Root Cause

A defect in Pegasystems’ code or rules :

First time autocomplete shows all result.Selecting any value from this will populate a grid below.
After that when autocomplete is searched for another value on scroll, result popup in blank after scrolled view.

Made grid pagination to None, after that auto-complete search worked properly all time.

In tracer could see error as "** Section 'TestSec' execution error on page '' of class 'ABC-XYZ-Work'. : For input string: ""
Also same time tracer shows scrolled results for popup from start Index 41 as well as grid result from StartIndex 41.

When Grid pagination is set to None, tracer shows only results for auto-complete from startIndex 41.

Issue is due to wrong java being executed on scroll of autocomplete results. This will happen when the autocomplete section has a conflicting grid included.


Perform the following local-change:

Add autocomplete to a wrapper section and include this wrapper in the original section.

Published June 7, 2017 - Updated July 20, 2017

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.