Monday, April 27, 2015

SharePoint 12013 Workflow Error: Method 'StartWorkflowOnListItem' in type



Microsoft has released an update for SharePoint 2013 on 12th August 2014 (KB2880998). Once you install this update on your SharePoint 2013 farm or on a single server, your SharePoint 2013 workflow manager component generates the below error:

Method 'StartWorkflowOnListItem' in type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider' from assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' does not have an implementation.





Microsoft has released a patch update for this fix which is available at: http://support.microsoft.com/kb/2880963
Note: You need to install the patch on the entire SharePoint farm if you are working on a farm environment.  You need not to restart any service or servers on the farm.


Happy Configuration!!!
Gireesh 

Wednesday, April 15, 2015

SharePoint 2013 Workflow starts and then immediately cancels

SharePoint 2013 workflow cancels

There are different scenarios related to auto cancellation of workflow in SharePoint 2013. There are some investigations I have done to fix this issue. It may differ in your case but you can check the following issues to investigate the workflow auto cancellation:

è  Validate the workflow account: The account which runs the workflow should not be the Service, Portal Administrator and farm administrator account.  This account should be a domain account with minimum permission like contributor permission on the site. If you run the workflow with system account it will automatically cancel the workflow after some time.

è  Verify the Email server: If your workflow has email notification and the SMTP server is not configured or unable to send email then it cancels the workflow automatically. It generates an error next to the cancel text on workflow page which is not easy to identify. So verify the email server notification by using the telnet on App or web server in SharePoint environment.

è  User Profile Service Configuration: You need to configure and start the user profile service prior to running workflow.  This is a very important service which helps workflow to identify user from Active Directory to execute in SharePoint environment. After configuring user profile service , User profile Synchronization service needs to be started to synchronize all the AD users to SharePoint portal.

è  Access to Workflow manager Application pool DB: If you are executing code based workflow then the accounts which creates workflow task needs to have access to the mentioned database.

Happy Coding!!!
Gireesh 

Monday, April 13, 2015

The best practice for SharePoint account selection while Installing and configuring farm environment

This blog focus on planning and understanding the configuration of SharePoint service accounts while SharePoint installation and configuration.  I have been working in farm deployment architecture from couple of months. I observed miss configuration of accounts lead you tons of critical errors in the Event log of all the servers in the farm. It’s a best practice to understand use of each account before configuring the SharePoint server farm. Here is the brief information about the account and configuration. The number of accounts may vary based on complexity of the farm and services. 
To Install SharePoint 2013 on a Server farm following accounts needs to be created and configured:
1.       SQL Service Account:
Account
Purpose
Requirements
SQL Service Account (SP_SQLService)
The SQL Server service account is used to run SQL Server. It is the service account for the following SQL Server services:
·         MSSQLSERVER
·         SQLSERVERAGENT

This account is mostly used to install SQL for SharePoint
Setup account (SP_Setup)
This is a domain account which is used to run following:
·         Install SharePoint
·         Run configuration wizard
·         Domain user account.
·         Member of the local Administrators group on each server on which Setup is run.
·         SQL Server login on the computer that runs SQL Server.
·         Member of the following SQL Server roles:
o    securityadmin fixed server role
o    dbcreator fixed server role
If you run Windows PowerShell cmdlets that affect a database, this account must be a member of the db_owner fixed database role for the database.
After you run the configuration wizards, machine-level permissions for the setup user administrator account include:
·         Membership in the WSS_ADMIN_WPG Windows security group.
·         Membership in the IIS_WPG role.
After you run the configuration wizards, database permissions include:
·         db_owner on the SharePoint server farm configuration database.
·         db_owner on the SharePoint Central Administration content database.

Farm Account (SP_Farm)
The server farm account is used to perform the following tasks:
·         Configure and manage the server farm.
·         Act as the application pool identity for the SharePoint Central Administration Web site.
·         Run the Microsoft SharePoint Foundation Workflow Timer Service.

·         Domain user account.
Additional permissions are automatically granted for the server farm account on Web servers and application servers that are joined to a server farm.
The server farm account is automatically added as a SQL Server login on the computer that runs SQL Server. The account is added to the following SQL Server security roles:
·         dbcreator fixed server role
·         securityadmin fixed server role
·         db_owner fixed database role for all SharePoint databases in the server farm

Application Pool Account (SP_AppPool)
Account for application pool for different web application
·         Domain user account.
  • This account must not be a member of the Farm Administrators group.


Search Service account (SP_Search)
Used to configure Search service application
·         Domain user account.
  • This account must not be a member of the Farm Administrators group on any server in the server farm.
·         Read permission to the web application


·         SP_Farm: This account is used to for following activites:
ð  Application pool identity for Central Administration
ð  Process account for the SharePoint Foundation 2013 Timer Service
After you run setup, machine-level permission includes:
·         Membership in the WSS_ADMIN_WPG Windows security group for the SharePoint Foundation 2013 Timer service.
·         Membership in WSS_RESTRICTED_WPG for the Central Administration and Timer service application pools.
·         Membership in WSS_WPG for the Central Administration application pool.
After you run the configuration wizards, SQL Server and database permissions include:
·         Dbcreator fixed server role.
·         Securityadmin fixed server role.
·         db_owner for all SharePoint databases.
·         Membership in the WSS_CONTENT_APPLICATION_POOLS role for the SharePoint server farm configuration database.
·         Membership in the WSS_CONTENT_APPLICATION_POOLS role for the SharePoint_Admin content database.
Service Application Pool account:
Service application pool account is setup by default during installation. Following permission is allocated automatically after configuration:
ð  The application pool account is a member of WSS_WPG
ð  The following SQL Server and database permissions for this account are configured automatically:
è  The application pool accounts for Web applications are assigned to the SP_DATA_ACCESS role for the content databases.
è  This account is assigned to the WSS_CONTENT_APPLICATION_POOLS role associated with the farm configuration database.
è  This account is assigned to the WSS_CONTENT_APPLICATION_POOLS role associated with the SharePoint_Admin content database.

 Best Wishes 
Gireesh Painuly

References: MSDN