Gantt view crash when paging documents view on page
-
4. ledna 2011 4:51
Hi,
I create a new site and add a documents library (loaded with 99 documents) and "Project Tasks" list.
On the home page I then add the Documents and Tasks.
If I set the taks to display as "Project Tasks" view (i.e. Gantt chart) and then try and page the documents I get the following error:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.SharePoint.WebControls.GanttV4.BuildPagingControls()
at Microsoft.SharePoint.WebControls.GanttV4.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
Anyone seen this before?Thanks.
Všechny reakce
-
4. ledna 2011 7:44You must be doing something wrong at time of creating the view. I have done paging at my end and i have never faced any issues with Gantt view. with calendar or tasks list
Best Regards, Ashutosh | My Blog Site -
4. ledna 2011 22:29
Hi,
I can reproduce this error on two seperate SharePoint 2010 servers.
Steps to reproduce:
- Create a new web application
- Create a new site collection, using "Blank" template
- Create document library
- Upload 99 documents
- Create "Project Tasks" list
- Add document library to home page
- Add "Project Tasks" to home page
- Set "Project Tasks" as view (Gantt view)
- Attempt to page documents list
- Crash
Can anyone else reproduce this error?
-
19. ledna 2011 22:27
Hi,
I am having the exact same error but I only have 35 documents. I cannot find a solution for the issue.
-
21. března 2011 2:29
So, thats at least two of us.
Anyone else having this problem?
-
20. července 2012 12:44
So, thats at least two of us.
Anyone else having this problem?
Actually I do since of yesterday. For one of our customers we created a kind of "Project Site Template" with a bunch of libraries, a calendar webpart and a gantt view webpart on the default page.
Since yesterday they were complaining that if they want to see the second batch of documents they receive an error.
Apparently, when you use paging and click to the next batch the task list is also "paging" and is showing a paging button to go back/forth 1 item. I noticed that if you add at least 1 task item the problem is solved. My guess is that he wants to show a task item but since there aren't any he's failing...
So our solution, agreement with the customer :) , is to add a default task called "Task 1". You could write an event handler on this task list that if there are items deleted you are going to check the amount of items still in the list, if the client deletes all tasks just create a new one.
Dirty work-around... but it helps :)
- Navržen jako odpověď Selva Antony 19. listopadu 2012 11:02
-
10. října 2012 11:42@eXertus, your workaround has helped me, thnx.