2

Resolved

advanced.aspx: error on redirect to result.aspx - System.IndexOutOfRangeException

description

Hi leonidly,
 
first i have to say "nice work"!
 
I get the following error message when I try to search with the advanced.aspx and redirect to the result.aspx:
 
Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
 
[IndexOutOfRangeException: Index was outside the bounds of the array.]
Microsoft.SharePoint.Portal.ExtendedSearch.Common.Operator.GetByName(String displayName) +223
Microsoft.SharePoint.Portal.ExtendedSearch.Common.Utility.ExtractFormData(Boolean& isAdvancedSearch) +3214
Microsoft.SharePoint.Portal.ExtendedSearch.Common.Utility.ExtractQuery() +312
Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchQueryWebPart.get_Query() +130
Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchBreadCrumbs.OnInit(EventArgs e) +88
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
System.Web.UI.ControlCollection.Add(Control child) +80
System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart) +220
System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPart(WebPart webPart) +108
System.Web.UI.WebControls.WebParts.WebPartManager.AddWebPart(WebPart webPart) +55
System.Web.UI.WebControls.WebParts.WebPartManagerInternals.AddWebPart(WebPart webPart) +11
Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart) +184
Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddDynamicWebPart(WebPart webPart) +85
Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts) +8057
Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts() +63
Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +409
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +8698006
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +467
 
 
System:
Enterpise Server ENG SP3
LangugePack GER for SP3
SQL Enterprise 2005 ENG SP?
Serchcenter GER

comments

leonidly wrote Jul 1, 2009 at 1:56 AM

Please provide the query passed in Url for your search

nstorandt wrote Jul 7, 2009 at 3:07 PM

Hey,

I have the same issue as mentioned above.

When I try to start a search from the advanced.aspx I ran into the following error:

The URL which is provided in IE is
http://sgnsrv46/SearchCenter/Seiten/results.aspx

Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
Microsoft.SharePoint.Portal.ExtendedSearch.Common.Operator.GetByName(String displayName) +568
Microsoft.SharePoint.Portal.ExtendedSearch.Common.Utility.ExtractFormData(Boolean& isAdvancedSearch) +5296
Microsoft.SharePoint.Portal.ExtendedSearch.Common.Utility.ExtractQuery() +726
Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchQueryWebPart.get_Query() +376
Microsoft.SharePoint.Portal.ExtendedSearch.WebControls.SearchBreadCrumbs.OnInit(EventArgs e) +202
System.Web.UI.Control.InitRecursive(Control namingContainer) +143
System.Web.UI.Control.AddedControl(Control control, Int32 index) +271
System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPartHelper(WebPart webPart) +305
System.Web.UI.WebControls.WebParts.WebPartManagerControlCollection.AddWebPart(WebPart webPart) +1929406
System.Web.UI.WebControls.WebParts.WebPartManagerInternals.AddWebPart(WebPart webPart) +63
Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartWithRetry(WebPart webPart) +147
Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddDynamicWebPart(WebPart webPart) +122
Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts) +8059
Microsoft.SharePoint.WebPartPages.SPWebPartManager.LoadWebParts() +93
Microsoft.SharePoint.WebPartPages.SPWebPartManager.OnPageInitComplete(Object sender, EventArgs e) +690
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +11032014

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1674

Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

wrote Jul 12, 2009 at 1:26 AM

wrote Aug 25, 2009 at 1:32 PM

skolombo wrote Aug 25, 2009 at 1:35 PM

I have exactly the same issue when use russian search site template. With english template it work fine.

BlackFlag wrote Oct 1, 2009 at 3:38 PM

Hi leonidly,

I have the same problem and error description. Searching from advanced search web part query string is blank (i.e. /SearchCenter/Pagine/results.aspx - I used an Italian language pack).

Any ideas?

leonidly wrote Oct 3, 2009 at 8:51 PM

What query was used for the search (you can get it in XML from event log)

BlackFlag wrote Oct 3, 2009 at 10:25 PM

Hi leonidly, I'm sorry but I can't find any search query. What I can find is the following:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/3/2009 11:30:06 PM
Event time (UTC): 10/3/2009 9:30:06 PM
Event ID: 221ca4b32ad544fbb68d9976080c6cb3
Event sequence: 14
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1723389142/Root-3-128990789864078336
Trust level: WSS_Custom
Application Virtual Path: /
Application Path: C:\Inetpub\wwwroot\wss\VirtualDirectories\8000\
Machine name: TRITOLO
Process information:
Process ID: 4328
Process name: w3wp.exe
Account name: TRITONE\usrsvc_app
Exception information:
Exception type: IndexOutOfRangeException
Exception message: Index was outside the bounds of the array.
Request information:
Request URL: http://tritolo:8000/SearchCenter/Pagine/results.aspx
Request path: /SearchCenter/Pagine/results.aspx
User host address: 192.168.1.133
User: TRITONE\riccardo
Is authenticated: True
Authentication Type: NTLM
Thread account name: TRITONE\usrsvc_app
Thread information:
Thread ID: 6
Thread account name: TRITONE\usrsvc_app
Is impersonating: False
Stack trace: at Microsoft.SharePoint.Portal.ExtendedSearch.Common.Operator.GetByName(String displayName)...

I can also find this record in the SharePoint Log

10/04/2009 00:02:35.03 w3wp.exe (0x0E38) 0x03AC Search Server Common MS Search Query 7pk2 High FetchDataFromURL start at(outside if): 1 param: start

and other two errors in the event viewer

Event Type: Error
Event Source: Faceted Search Logging
Event Category: None
Event ID: 6352
Date: 10/4/2009
Time: 12:02:38 AM
User: N/A
Computer: TRITOLO
Description:
Timestamp: 10/3/2009 10:02:38 PM
Message: There is no explicit mapping for the categories 'Faceted Search Logging'. The log entry was:
Timestamp: 10/3/2009 10:02:38 PM
Message: Default scope All Sites in Search Facets doesn't exist in SSP scopes (my note: that's not true)
Category: Faceted Search Logging
...

and

Event Type: Error
Event Source: Faceted Search Logging
Event Category: None
Event ID: 6352
Date: 10/4/2009
Time: 12:02:38 AM
User: N/A
Computer: TRITOLO
Description:
Timestamp: 10/3/2009 10:02:38 PM
Message: There is no explicit mapping for the categories 'Faceted Search Logging'. The log entry was:
Timestamp: 10/3/2009 10:02:38 PM
Message: Discovered and cached 4 search scopes. (my note: one more time that's not true, there are only two scopes both in SSP and Site Collection)
Category: Faceted Search Logging

Thanks
Riccardo

leonidly wrote Oct 3, 2009 at 11:18 PM

There are some hidden scopes that Faceted Search caches. The error you get says that EntLib logging isn't working properly. You need to troubleshoot your environment and setup to identify the reason.

BlackFlag wrote Oct 4, 2009 at 4:08 PM

Can you address me in some way, I have no idea on where to start :(

leonidly wrote Oct 4, 2009 at 6:01 PM

If you want a pro to look at your setup and debug the proccess for you, I suggest you to engage StoicTech. Otherwise provide all your configurations steps and snapshots and will start from there.

BlackFlag wrote Oct 9, 2009 at 10:55 AM

Hi Leonidly, just a quick update.

After installing the latest build advanced search began to work well. I also noticed that the problems I had with date/time values facets was related to SharePoint regional settings.

The errors in the event log remains but everything seems to be ok.

Cheers
Riccardo

wrote Oct 9, 2009 at 12:16 PM

wrote Feb 14, 2013 at 2:41 AM

wrote May 16, 2013 at 7:10 AM

wrote May 16, 2013 at 7:10 AM

wrote Jun 14, 2013 at 6:52 AM