Dec 26, 2013

SharePoint 2013 Work Flow cancelled automatically due to error :HTTP 401 {"error_description":"The server was unable to process the request due to an internal error...}

Hi Guys

Recently I have installed and configured the WorkFlow Manager for my project and i got succeded in doing that. And then I have created a spd workflow and published it, but when I see the history it is saying the workflow is  started but after that it got cancelled automatically by saying this below error

RequestorId: 26f1da47-f3e6-0816-0966-df958cd57c7d. Details: System.ApplicationException: HTTP 401 {"error_description":"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs."} {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["26f1da47-f3e6-0816-0966-df958cd57c7d"],"request-id":["26f1da47-f3e6-0816-0966-df958cd57c7d"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["252"],"SPIisLatency":["1"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["Bearer realm=\"73b2c214-338d-4c93-937f-5852744a020d\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000- ---

This issue comes because, the Workflow Manager tries to authenticate SharePoint with the OAuth. Here only the Identity information is passed through the OAuth token. The rest of the information about the user is picked from the User Profile Service Application by the SharePoint.  So the UPS service application should be up and synchronized. 

Follow/Check  these below steps to resolve the issue :

  • First Check the user(  with whom you are publishing the workflow  )should not be a system account
  • Check that the User Profile Synchronization service is running and Full Synchronization is done
  • Make sure that the user with whom you are publishing the workflow should be available in User Profile List. If not add the user by going  this below path  Central Administration--> Manage Service Applications --> Select User Profile Service --> Manage --> Manage User Profiles --> New Profile and then fill the details.

This will resolve your issue..


Dec 20, 2013

Reusable Content in SharePoint 2013

Hi guys,

This is a small feature to reuse some kind of HTML and text in various places from a centralized storage when you are authoring the documents. Basically this is a list which is available with the publishing sites.

Reusable Content list have these columns

Title :  This is the name of your content.

Comments:  like a description about your content like for which purpose you are writing this...

Content Category: To categorize your content in to different groups. This is a choice filed you can add your own new category by editing this column in list settings. (List SettingsàClick on this columnà Add new category in the choice box)

Automatic Update: This is an important column, which says that if you check this box this content will be added as a “read-only” reference in the instances (where we use this) and if any changes made to this original content this will be applied to all those instances.. If we not check this box, then this content will be used as a copy in the instances and the content in the instances can be modified directly and also the automatic updates will not be done in the instances if we change this original content…

Show in drop - down menu: If we select this option , this reusable content item will appear as a dropdown menu in editing mode of the page this gives conten authors a quick way to add this item in to the page.

Reusable HTML : This is the field where you will add your content which needs to be reused.

Follow these steps to create and use the reusable content.

Reusable content Item creation.

Here I am filling some info related to SharePoint introduction

Here I created some content and checked the automatic update column .

Now , how can we use this content .?

Create a webpage and add the content like this

Assume, we are using this content in 20 pages. And if there is any small change just like a spelling mistake in the content, we need to change the content in all those 20 pages page by page . And also since this is a Publishing Site every page needs an approval after the change..this needs so much efforts. But with this cool feature(with automatic update option) you can change at one place which will be applied across all the 20 pages like this..

Here I am changing the heading SharePoint Overview to SharePoint 2013 Introduction..

See how it applied on our webpage..

Note : This feature also available with 2010. And this can be done programatically too...

So start using of this feature and save your time..!!!