Value Does Not Fall Within the Expected Range Error in Web Part

Applies To

Symptoms

Add the AgilePoint TaskList control web part to the SharePoint site. One of the users get the following error in the web part:

Current User: [domainname]\[username], 
    Error: Value does not fall within the expected range.

Other users do not have this error in the web part.

The following error is shown in the log file:

12/3/2005 7:32:08 PM>>CreateChildControls ... 
    begin on 12/3/2005 7:32:08 PM
12/3/2005 7:32:10 PM>>System.ArgumentException: Value does not fall 
    within the expected range.
at Microsoft.SharePoint.SPFileCollection.get_Item(String urlOfFile)
at Microsoft.SharePoint.SPFile.c()
at Microsoft.SharePoint.SPFile.d()
at Microsoft.SharePoint.SPFile.get_Properties()
at Ascentn.Workflow.APWP.TaskNumber.CreateChildControls()
InnerException:
12/3/2005 7:32:10 PM>>CreateChildControls ... 
    end on 12/3/2005 7:32:10 PM

Cause

The error is caused by the Microsoft SharePoint API failed to retrieve the property information about a document based on the document URL.

This is normally caused by the document library or the document itself does not exist. Usually happens in a testing environment that some libraries or documents are removed while the process instances are still running.

Resolution

Check in the AgilePoint Enterprise Manager to see if there are tasks assigned to the specific user and whether the documents associated with the tasks exist. If not, remove the tasks or process instances should resolve the issue.