Thursday 26 February 2015

Configuring workflow Management Service in SharePoint 2013

Configuring SharePoint 2013 to support workflow Management Service

By default, in SharePoint 2013, Workflow Manager Service is not configured. Workflow Manager Service has to be downloaded, installed and configured manually before it can be used in SP 2013. Here is a step by step walk-through.  
Step 1: Open Microsoft Web Platform Installer
My version of WPI is 4.5
Step 2: Search for Workflow. You will get the below list

Step 3: Select Workflow Manger 1.0, click Add and then "Install"
Step 4:  Click on "I Accept"
Step 5:  Click on "Continue"
Step 6:  Click on "Continue"
Step 7:  Click on "Configure Workflow Manager with Custom Settings"
Step 8:  Click on all " Test  Connection" buttons

Step 9:  Supply User details and Passwords

Step 10:  Accept the defaults  and check "Allow Workflow management over HTTP on this computer" option as your system is not configured for HTTPS.
Step 11:  Next task is Service Bus configuration.


Step 12:  Do test connections and select "use the same account" and "use the same certificate" options.


Step 13:  Accept the summary screen

Step 14:  Now, installation in progress and it will take couple of


Step 15:  Installation complete


Step 16:  Check Application Pool "WorkflowMgmtPool" running or not
Step 17:  Check web site "Workflow Management  Site" running or not

Step 18:  Install Cumulative updates. First install cumulative update of Service Bus



Step 19:  Install Workflow Manager 1.0 Cumulative Update 1



  
Step 20:  Do IIS RESET
Step 21:  Workflow Service Status will still remain "Not Connected"(http://server>>/_admin/WorkflowServiceStatus.aspx)
Step 22:  You need to register "Workflow Manger". For that, Open Management Shell

Step 23:  Give this command "Register-SPWorkflowService -SPSite "http://xxxx" -WorkflowHostUri "http://xxxx:12291" - AllowOAuthHttp

Step 24:  Refresh the page. Your Workflow Service Status is "connected" now.
Step 25:  You can also verify this using SharePoint Designer. For that, connect to the server


Step 26:  Select Workflow, click on List workflow. Check the platform type by clicking on Platform Type Selection box. You will see both SharePoint 2010 Workflow and SharePoint 2013 Workflow.

Posted on April 18, 2014 | by Ricardo Palhano

SharePoint 2013 Workflow Manager Installation Verification

If you follow http://technet.microsoft.com/en-us/library/jj658588(v=office.15).aspx#section6, in the verification section is says “When you have completed the installation of SharePoint 2013 Workflow manager you can check Central Administration”.  And if everything looks good you will be able to create workflows in Central Administration.
So it everything looks good in Central Administration
Workflow is Connected Central Administration Screen
Unfortuantely in some cases even when all looks good, Designer displays the following:
SharePoint Designer 2013 Add Workflow Error
“The option for the SharePoint 2013 Workflow platform is not available because the workflow service is not configured on the server. Please contact your server administrator.”

SharePoint 2013 Workflow Manager Post Installation Steps

So there are two main issues that I have seen cause this situation.
New Workflow Manager Proxy not selected for Web Applicaiton
The first is that the client is not using the default service application
SharePoint 2013 Workflow Service Store SPFeature not enabled
The second is that the 2013 Workflow Service Store SPFeature is not enabled for the current site.
Enable-SPFeature -Identity WorkflowServiceStore –Url http://YOURURLHERE
 Enable the Workflow Service Store for SharePoint 2013
So those two post-installation steps are the only issues I have found after you succesfully get the Workflow is Connected message where everything should work.

installed Sharepoint Designer 2013 and tried to create SharePoint 2013 workflow but there was no option to select platform type as “Sharepoint 2013 Workflow” and getting the following message in SharePoint Designer 2013:
"The option for the SharePoint 2013 Workflow platform is not available because the workflow service is not configured on the server. Please contact your server administrator"

Solution:

Here are the steps to fix this issue:
1. Make sure Workflow Manager 1.0 for SharePoint 2013 server is installed and configured properly.
2. Verify that all the following services are running: (To check service status, Press Windows key+R and type services.msc)
  • Workflow Manager Backend
  • Windows Fabric Host Service
  • Service Bus Gateway
3. Open “Sharepoint 2013 Management Shell” and run following command:
Enable-SPFeature -Identity WorkflowServiceStore –Url $yourUrl
replace $yourUrl with your site collection URL.
In my case, I was getting message the feature was already activated at that site.
4. Open IIS, Verify “Workflow Management Site” is working fine.
iis workflow
For testing, You can open following in your browser.
http://servername:12291
5. In “Sharepoint 2013 Management Shell”, run following

Register-SPWorkflowService –SPSite "http://myserver/mysitecollection" –WorkflowHostUri "http://workflow.example.com:12291" –AllowOAuthHttp

In my case:

Register-SPWorkflowService –SPSite "http://techbrijmachine/sites/dev" –WorkflowHostUri "http://techbrijmachine:12291/" –AllowOAuthHttp

Change port number if you want use HTTP(12291) or HTTPS(12290) to communicate between Workflow Manager and SharePoint Server 2013.
refer following for more details:
http://technet.microsoft.com/en-us/library/jj658588.aspx#section5
http://msdn.microsoft.com/en-us/library/windowsazure/jj193529%28v=azure.10%29.aspx
6. Open Sharepoint Designer 2013 and enjoy Sharepoint 2013 Workflow.












sharepoint-designer-2013-workflow


If nothing works, Please run the "Refresh Trusted Security Token Services Metadata feed" timer job




 Ref: http://sharepoint-community.net/profiles/blogs/configuring-sharepoint-2013-to-support-workflow-management
http://techbrij.com/the-option-sharepoint-2013-workflow-platform-not-available


Wednesday 25 February 2015

SharePoint 2013: Workflow

Workflow Manager 1.0 for Sharepoint 2013 - forbidden error (error 403)

Sharepoint 2013 workflow + The server was unable to process the request due to an internal error

SharePoint 2013 Workflow

The concept of Workflow in SharePoint 2013 is changed a whole lot.

The three thing which you need to take care while configuring the workflow to run on SharePoint 2013 is that

  1. Workflow Manager 1.0
  2. Workflow client 1.0
  3. Workflow Manager Tool for Visual 2012
  4. Developer Tools for Visual studio.

As the Workflow does not run inside the share point  you can install Workflow Manager 1.0  on different server or on same server where share point is hosted ..You can follow the MSDN link below to install and configure the Workflow Manager 1.0.

http://technet.microsoft.com/en-us/library/jj658588.aspx

Workflow client 1.0 - This has to be installed on all the sharepoint server (Web fornt end,App).This has API which communicates with the Workflow Manager.

Workflow Manager Tool for Visual 2012 - This has to be installed on the server where you create Visual studio 2013 SharePoint Workflow.Assuming that VS2012 is already installed .
2013 Sharepoint WF template is named as "Workflow"  in VS the "sequential and state machine" template is legacy now and it is not used in SharePoint 2013.

Developer Tools for Visual studio- Is to be installed on server where the Visual studio 2012 is installed.This provide new activities in Tool Box of VS12.


Along with this when you try to install the WorkflowManager through webPlatform installer .
Service Bus and cummunlative updates will be installed automatically.If you are installing it manually you need to install all the updates and Service bus.


Even after having all this there will be few problem with sending mails from VS12 WF.To overcome the issue You need to Install the MARCH-PU sharepoint 2013 updated and configure the same.


Plese follow the below link to install and configure it

http://www.deliveron.com/blog/post/Installing-March-2013-Public-Update-on-SharePoint-Server-2013.aspx


After all these are done you also need
  • App Management Service to be running
  • User Profile Service to be running
  • User Profile Sync Service to be running
Only then your WF runs without any problem :)
 
Ref:http://sharepointerthilosh.blogspot.in/search/label/workflow
 

Monday 16 February 2015

Error: Web Anaytics: A usage report is not available for this site. Usage processing may be disabled on this server or the usage data for this site has not been processed yet

In SP2010 and getting following error while accessing Site Usage Reports
A usage report is not available for this site. Usage processing may be disabled on this server or the usage data for this site has not been processed yet.
Here is what you need to do:
  1. Check the log folder and see if sharepoint is creating the logs.  if not, you may need to add permissions to the folder so sharepoint can write logs. (make sure the account under which the usage analysis is running has access to write in that folder) C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Logs\
  2. If the logs aren’t showing up in that folder, you could have an issue with your Timer service.  you should have to  check the timer job status, and the date it was last run (central admin)
  3. Try the following commands: stsadm -o getproperty -propertyname job-usage-analysis -url http:// If this returns NO, it means the flag isn’t set.  you can set it using the following command:
    stsadm -o setproperty -propertyname job-usage-analysis -propertyvalue “daily between 00:00:00 and 00:01:00″ -url
    If it is Yes it mean it is enabled.

Monday 9 February 2015

Error : Configuration Failed :: Failed to create configuration database; The password supplied with the username was not correct

I was receiving the following error while installing SharePoint.
  • SharePoint 2010
  • Windows Server 2008 R2
  • SQL Server 2008 R2
  • Active Directory

The installation went fine, but running the Products & Configuration wizard, the error appeared and spoiled the game.
I error says “Password was not correct”.  I ensured the password was right.

image
Playing around & I found that the user was not added to Administrators group.  Following is the fix:

Solution

Create a new user spadmin
Eg: DOMAINspadmin
Ensure the Password policy as Never expires.
image
Add the user to Administrators group
Inside Active Directory window, right click on the user & choose the Add to Group option.
image
Click Ok to continue.
Assign SQL Server Permissions
Now open your SQL Server & choose Security>Logins. 
If you cannot find the spadmin user, add using New Login option.  Ensure you set the following Server Roles as well
image      image

Click the Ok button save changes
Back in SharePoint Products & Configuration Wizard
Back in the wizard, use the new spadmin user in the format DOMAINspadmin
The error should not appear this time.  Good Luck!
Ref:  http://www.jeanpaulva.com/index.php/2013/01/29/error-configuration-failed-failed-to-create-configuration-database-the-password-supplied-with-the-username-was-not-correct/