Skip to main content
Search Again

We think these articles could help you:

    See More
    Nintex Knowledge Base

    Error "User cannot be found" Viewing Workflow Settings

    Status: Validated

    ISSUE
    When viewing the Workflow settings on a Document Library, the following error might occur:

    User cannot be found.

    Additionally, the following error can be found in the ULS logs:

    SharePoint Foundation Runtime Unexpected Microsoft.SharePoint.SPException: User cannot be found. at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)
    ERROR CODE
    SharePoint Foundation Runtime Unexpected Microsoft.SharePoint.SPException: User cannot be found. at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)
    RESOLUTION
    Locate the Workflow with the invalid user information and then manually re-publish it.
    1. Run a SQL server profile trace - there should be an indication of a location where the problem occurs, for example: _catalogs/wfpub/Approval - SharePoint 2010',@LeafName1=N'ReviewApproval_1033.xoml.wfconfig.xml
    2. Use SharePoint Designer to open the workflow file that is implied to exist by the .xoml.wfconfig.xml file extension. Browse to (in this example) _catalogs/wfpub.
    3. Find the workflow files that are present and attributed to a deleted user and while logged in with a current, valid user, check them out then chec them in to update the "modified by" property.
    4. You should now be able to browse to the pages that were previously producing errors.
    ADDITIONAL INFORMATION
    This is caused by having a user deleted from the site that was referred to in a published Workflow, most likely as the publisher.
    RELATED LINKS