SharePoint Designer 2007 Workflow : Stopped


Hi Friends – This article is yet another issue that we faced in Workflow

Recently, we created SharePoint Designer 2007 workflow to send email to the requester and SharePoint group, “Admin”. When the requester created an item, the mail did not trigger and the workflow status was “Stopped”. When one of the person from “Admin” group navigated to the list and approved it, mail was triggered. We were breaking our heads for an hour by rolling back the changes as it was working initially. Finally we came to know that “Admin” group in email was the Problematic one.

PROBLEM:

When we create workflow to send email with SharePoint group as mail recipient, the workflow stops running.

SOLUTION:

  • Go to Site Actions->Site Settings->People and groups under Users and Permissions
  • Click on the SharePoint group(in our case, Admin) and go to Settings->Group Settings
  • Allow everyone to see the membership of the group by changing the group settings as shown below:

group-settings

Advertisements

Workflow got Cancelled?


Hi Friends…This time I would like to share one of the reason that workflow gets cancelled. Are you using SharePoint Designer for Workflows? Is the workflow Cancelled? No worries…Follow this article..

Scenario: Email triggered with information about Multiple choice field

To have better understanding, let’s assume we have SharePoint list with below fields:

Name(Title)-Single line of Text

Address- Multiple lines of text

Hobbies- Choice(Checkbox)

Now let’s create a workflow in SharePoint Designer to trigger email to the admin. In the workflow, insert “Send Email” Action with below message:

Hi Admin,
An Item has been created by [%Current Item:Created By%] with below details:
Name: [%Current Item:Name%]
Hobbies: [%Current Item:Hobbies%]

Save it and publish the workflow with required workflow settings(say, start workflow automatically when an item is created)

Now when the user opens the form to fill only Name and Address and leave the Hobbies without any selection, the workflow fails.

So, Always note that when a multi-select checkbox is used in the Email, follow any one of the below rules:

  • Make the multiple choice field as mandatory in InfoPath form
  • Remove Multiple Choice Field from Email Action in Workflow and publish it
  • Create a default choice for multiple choice field(here, hobbies) as “NONE” or “OTHER” as per your wish

 

SharePoint Access Denied Issue


We recently faced a SharePoint access issue in one of our SharePoint 2010 site being upgraded to Office 365 with 2010 look and feel. I would like to share the issue with the solution as it might help someone in the future.

Issue:

We added a client X to one of our SharePoint group with contribute permission. As the client was not able to access it, we removed the client from the group and added him again but still he faced the same issue. We tried with different levels of permission which was also a failure. We started to explore the issue much deeper.

What we did is, we just clicked on Site Actions -> Site Permissions -> SharePoint group(in which the user was added) and moved the mouse over the client’s name to open his contact card. There we found the problem! The email id in contact card was x@domain.com where as the current email id isx1@domain.com . We thought his email id was not updated in Active directory. To confirm it, we gave permission to another site and was shocked to see his email id as x1@domain.com. Now the issue was becoming more and more complicated

When we approached our support team, they asked us to remove the client and added him again. We started to do it again but when we removed the user and checked his permission as “None”, he was still existing in “All People” Page. OMG…This is the reason behind the  issue

Solution:

How to go to All People Page in SharePoint 2010? In MOSS 2007 site, when you click on Site Actions-> Site Settings-> People and groups under Users and Permissions, you will find “All People” in Quick Launch as shown below:

moss 2007

But in 2010 site, there is no such link. In order to go to All People Page, use the below url:

https://yoursite.com/_layouts/people.aspx?MembershipGroupId=0

If you are the primary or secondary site administrator, then select the user, remove the user permission and add him again. Now you have granted access to the user with current email id!