Email: info@zenconix.com

SHAREPOINT 2013 WORKFLOW- LookupWorkflowContextProperty



Visit Site:

Overview

We have seen how to use LookUpSpListItem in last post here. Now we will see how to use LookupWorkflowContextProperty activity.

Use of LookupWorkflowContextProperty is to get properties of the workflow.

We can have following properties of the workflow

  1. Associator
  2. Initiator
  3. Association Name
  4. Instance ID
  5. Current Site Url
  6. Current Item Url
  7. List Name
  8. List Id

workflowContextProperty

We will see how to print site url now

Just set the Variable,

siteUrl

To print site url, take writeToHistory activity, print siteUrl there. You will get following url

result-workflowContextProp

I hope, this post might help you.

ENJOY SharePoint 2013 workflows

Features

Specifications

Preview

This form can not be rendered.



Visit Site:

Overview

I am working with Workflow in SharePoint 2013, I got unexpected error today while creating association form.

Error was,

workflowIssue

Solution:

After searching it on internet I got to know that “State Services” was not started. So I have started it from central admin

.stateService

 

And now forms are rendering

afterResolve

 

Features

Specifications

Preview

Error occurred in deployment step ‘Activate Features’: System.TimeoutException- while deploying SharePoint 2013 workflows



Visit Site:

Overview

While deploying workflow an error occured, that

Error occurred in deployment step ‘Activate Features’: System.TimeoutException

When I see in output window the explaination was

Error occurred in deployment step ‘Activate Features’: System.TimeoutException: The HTTP request has timed out after 20000 milliseconds. —> System.Net.WebException: The request was aborted: The request was cance

 

After searching it I got to know that “Service Bus Gateway” and “Service Bus Message Broker” services should be Started

services

So go to Run -> services.msc, it will open services page where you will find this service (if you have configured Workflow Manager in your machine )  start the services and reset iis

resetIIS

Deploy the workflow. It will run.

 

Features

Specifications

Preview

Workflow not completed, Canceled automatically



Visit Site:

Overview

Workflow Canceled automaticaly

After completing configuration of the workflow, I have created simple test workflow, but workflow shows an error, that “Error Occured”

and when I see the workflow status, It shows that workflow canceled, I confused and added 2-3 new items in list, still same error.

Then I also tried for another lists and applied workflow, but same issues. Workflow canceled with big error.

Error was something like this

RequestorId: 55c6990b-c4a6-352c-4a5b-449fc1aecac4. Details: System.ApplicationException: HTTP 401 {“x-ms-diagnostics”:[“3001000;reason=\”There has been an error authenticating the request.\”;category=\”invalid_client\””],”SPRequestGuid”:[“55c6990b-c4a6-352c-4a5b-449fc1aecac4″],”request-id”:[“55c6990b-c4a6-352c-4a5b-449fc1aecac4″],”X-FRAME-OPTIONS”:[“SAMEORIGIN”],”SPRequestDuration”:[“61″],”SPIisLatency”:[“1″],”Server”:[“Microsoft-IIS\/8.0″],”WWW-Authenticate”:[“Bearer realm=\”61e7a76b-024e-40d5-9185-2887a044d7cc\”,client_id=\”00000003-0000-0ff1-ce00-000000000000\”,trusted_issuers=\”00000005-0000-0000-c000-000000000000@*,00000003-0000-0ff1-ce00-000000000000@61e7a76b-024e-40d5-9185-2887a044d7cc\””,”Negotiate”,”NTLM”],”X-Powered-By”:[“ASP.NET”],”MicrosoftSharePointTeamServices”:[“15.0.0.4420″],”X-Content-Type-Options”:[“nosniff”],”X-MS-InvokeApp”:[“1; RequireReadOnly”],”Date”:

 

After little search about error, I got to know that , User profile synchronization service should started.

In my case it was not configured and not started.

user profile sync config

Start the service

user profile sync started

Also keep in mind that , The user by whom you are logged is available in User Profile list.

and you have to do full synchronization of User Profile Application.

My workflows are running now.

Reference  : http://anujabhojani.blogspot.in/2014/02/workflow-gets-canceled-automatically.html

 

 

 

Features

Specifications

Preview