I have build a workflow using SharePoint Designer and attached it to a document library. The workflow itself is working with no problem.
In the library, if I add the workflow column to the view, I can see the link with the current state as the label, and the link href is :
There is in the query string both library's ID and WF instance ID, which is fine.
On my home page, I added the webpart of this library, and set up the view to group by the workflow column and to view the workflow column. Visually it's ok, but the link generate for the column is :
As you can see, the List argument is not populated.
With no surprise, when I click on the link, I got this error :
Server Error in '/' Application.
--------------------------------------------------------------------------------
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.ApplicationPages.WrkStatPage.SetCamlVariablesFromQueryString(ListViewByQuery listViewByQuery, String queryString) +725
Microsoft.SharePoint.ApplicationPages.WrkStatPage.OnLoad(EventArgs e) +5027
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
What should I do to add, in the home page, a link to the status of the workflow of my item ?