Blog

I'm looking for:

Failed to get SPGroupName from GroupID. Error Message: Group cannot be found.

I had a client getting the following error message:

An error has occurred in {Workflow Name}.

When I looked in the ULS logs I found the following message.

Failed to get SPGroupName from GroupID. Error Message: Group cannot be found.  Callstack:
at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)
at Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 value).

After searching for the error and nothing working I opened the Workflow in SharePoint Designer, It turns out that we were using an impersonation step and replacing permissions on the current list item that triggered the workflow and my client had renamed one of the permission levels on the site and apparently SharePoint uses the name string for lookup of the permission level.

We decided to rename the permission level back to the original value and restart the workflows.  Everything worked as expected after the rename.


Looking for a new job? We work with some of the biggest names in tech, and we’re hiring! Check out our open jobs and make your next career move with Planet.

|