You are viewing limited content. For full access, please sign in.

Question

Question

Why am I getting a 9035 error when searching with the API?

asked on June 18, 2014 • Show version history

The error message is "The current request could not be performed because there are too many existing operations running. (9035)". This is on a 9.0 server, freshly restarted, with no-one else using the system.

 

This is the code block:

            foreach (DataRow Row in DTNames.Rows)
            {
                string SearchSyntax = @"{[]:[UCI #]=" + (char)34 + Row[2] + (char)34 + "} & {LF:Name=" + (char)34 + "*" + (char)34 + ",Type=" + (char)34 + "F" + (char)34 + "} & {LF:LOOKIN=" + (char)34 + @"Testing\Client Records\" + (char)34 + "}";
                Search ASearch = new Search(LfSesh, SearchSyntax);
                ASearch.BeginRun(true); //true means it stays on that command until finished.
                SearchListingSettings SLS = new SearchListingSettings();
                SLS.EntryFilter = EntryTypeFilter.Documents;
                SearchResultListing SRL = ASearch.GetResultListing(SLS);
                if(SRL.RowCount > 0)
                {
                    MessageBox.Show(Row[2] + " " + Row[4] + " " + Row[5]);
                }
            }

 

0 0

Answer

SELECTED ANSWER
replied on June 18, 2014 • Show version history

You need an ASearch.Close after the if statement. RA is a little less forgiving about not cleaning up after yourself than LFSO.

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.