Unexpected error when trying to open a task from task list/Outlook

Answered Unexpected error when trying to open a task from task list/Outlook

  • Sunday, July 29, 2012 9:17 AM
     
     

    Hi,

    The issue is like this - a user created a list item, which started an approval process on it for his manager approval. The problem is that when the manager tries to open the task (from Outlook, which opens him the SP site or from tasks list) in order to approve it, he gets an unexpected error. My user (admin), doesn't get that error.

    Searched for errors in log, thats what I got:

    07/29/2012 11:17:47.96 w3wp.exe (0x12B8)                       0x17B8 SharePoint Foundation         Runtime                       tkau Unexpected System.ArgumentNullException: Value cannot be null.  Parameter name: item    at Microsoft.Office.Workflow.ListPage.SimpleNameFromItem(SPListItem item)     at Microsoft.Office.Workflow.WrkTaskIPPage.OnLoad(EventArgs ea)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) c8f5c2ac-db9a-434d-9237-914b0181e1e6.

    What is it???? Cant seem to find any solution for it. Tried to give him full access to the task, this was not helpfull.

    Another thing - when he tries to open the list item which he needs to approve, he gets the following error:

     "No item exists at http://listURL. It may have been deleted or renamed by another user."

    The list is set so only the creators can read/edit their list items so this makes sense, but he needs to approve it! so what should be done here??

    Any help would be appriciated,

    Lena.



All Replies

  • Monday, July 30, 2012 1:56 AM
     
     

    The problem is that the approver doesn't have access to the item that they need to approve.

    You can solve this in a couple of ways.

    One way I have done this in the past, is to add permissions for the approver using a custom workflow and SharePoint Designer. Here is an article that will walk you through the process: https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-2010---Configuring-List-Item-Permissions-with-Workflow.aspx

    Note that the article has slightly different requirements but most of it suits your scenario. The other thing to note is that this requires using item level permissions which may or may not be acceptable in your scenario. In general, if you are working with a medium to large list, you should not use item level permissions.

    A Second way to solve this problem is to give approvers "Approve" access to all items on the list...depending on the site template you are using, you may have to create a custom permission. Here is some more detail on that: http://technet.microsoft.com/en-us/library/cc721640.aspx Note, that this does not require item level permissions

    A Third way to solve this problem is use custom code.


    Doug Hemminger http://www.sharepointdoug.com

  • Monday, July 30, 2012 6:39 AM
     
     

    Hi Doug, 

    Thank you so much for answering.

    Even now, after I gave him full control on the list items he needs to approve, he still gets the error message I listed above ("No item exists..."). I guess that happens because of the "Read items that were created by the user" setting, I don't know how to bypass that without giving him permissions on all the items in the list - only when I give him FC or manage list permissions on the whole list he can access the item.

  • Tuesday, July 31, 2012 8:36 AM
    Moderator
     
     Answered

    Hi Leonora,

    I can reproduce this issue, and I also suspect this is caused by "Read items that were created by the user" permission setting.

    Assuming that the list enables the "Read all items" option, and has two columns "Created By" and "Approver", you can modify this view of AllItems.aspx, then filter the items where condition is "Created By is equal to [Me]" Or "Approver is equal to [Me]", this will make the current logged-on user see the list items related to himself, .

    Then you need to disable the "Create personal list View" permission for these list member users (and approver users if needed).

    Thanks


    Daniel Yang

    TechNet Community Support

  • Wednesday, August 08, 2012 11:42 AM
     
     

    Hi Daniel,

    Thanks for answering!

    I think it is not the appropriate solution, because there are people who need to see all list items.

    What I've done is gave "Manage List" permissions to the people who need to approve the list items, and configured the workflow that is running each time an item is created to remove that permission for that group and give Full Access to the person that needs to approve it. Didnt find other way to do it.

    Lena.

  • Thursday, August 09, 2012 1:36 AM
    Moderator
     
     

    Hi Lena,

    If some people (e.g. may be approvers) need to see all the list items, just don't disable the "Create personal list View" permission for them, they can create a personal list view to show all the list items.

    Glad to hear that you seem to have found a way using workflow to achieve your goal, thanks for sharing.

    Thanks


    Daniel Yang

    TechNet Community Support