Quantcast
Channel: Workflow Manager 1.0 forum
Viewing all 897 articles
Browse latest View live

Scopes Stuck in 'Unregistered' State??

$
0
0

I keep getting my WF Manager Scopes into an 'Unregistered' state.  And once there I can't do anything with it (can't delete the scopes, recreate scopes, post notifications, etc.,).

Here is the error I get when I try to do anything with the Host once I have gotten in this state:

Scope '/MyScope/0' is not in an active state. Its current state is 'Unregistered'. HTTP headers received from the server - ActivityId: fcab6654-e0eb-4d98-8e6b-687dce187a55. NodeId: Machine1. Scope: /MyScoper/0. Client ActivityId : 61ddec2f-b61f-459b-b45a-1656fed3ea2c.

This only happens during administrative tasks (i.e.; deleting scopes and then trying to recreate them). As I understand thiese happen asychrnously in the background is it possible I am hitting a race condition issue.

Any thoughts on how this is happening or how I can recover?  I have tried the obvious things of stopping and starting the WF Manager Backend service and recycling the AppPool, but no luck.  I am guessing something is locked in one of the WF or SB databases but not sure what or how to unlock it.

The only way I can recover is to delete all the records in the Scopes table except the first record (i.e.; with ParentScopeID = NULL).

FWIW, I can reproduce this at will. 

Rod


Sharepoint 2013 Workflow manager SingleTask

$
0
0

I want to create simple workflow for sharepoint 2013 with one activity SingleTask

I set all required properties for task, but than I compliled my solution I get so error:

Error 5 The "ExpressionTranslationBuildTask" task failed unexpectedly.

System.ArgumentException: '', hexadecimal value 0x0B, is an invalid character.

  at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)

  at System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)

  at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)

  at System.Xml.XmlEncodedRawTextWriterIndent.WriteString(String text)

  at System.Xml.XmlRawWriter.WriteValue(String value)

  at System.Xml.XmlWellFormedWriter.WriteValue(String value)

  at System.Xaml.XamlXmlWriter.InMemberAttributedMember.WriteEndMember(XamlXmlWriter writer)

  at System.Xaml.XamlXmlWriter.InMemberTryAttributesAfterValue.WriteEndMember(XamlXmlWriter writer)

  at System.Xaml.XamlXmlWriter.WriteEndMember()

  at System.Activities.XamlIntegration.ActivityBuilderXamlWriter.WriteEndMember()

  at System.Xaml.XamlWriter.WriteNode(XamlReader reader)

  at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)

  at Microsoft.Activities.Design.ExpressionTranslation.ExpressionTranslator.SerializeToString(XamlDomObject xamlDomObject, XamlSchemaContext xamlSchemaContext)

  at Microsoft.Activities.Design.ExpressionTranslation.ExpressionTranslator.GetRootActivity(XamlDomObject xamlDomObject)

  at Microsoft.Activities.Design.ExpressionTranslation.ExpressionTranslator.UpdateWorkflowSymbol(Activity originalRootActivity, XamlDomObject translatedRoot, WorkflowSymbol workflowSymbol)

  at Microsoft.Activities.Design.ExpressionTranslation.ExpressionTranslator.ReplaceDebugSymbols(Activity originalRootActivity, XamlDomObject translatedRoot)

  at Microsoft.Activities.Design.ExpressionTranslation.ExpressionTranslator.GetTranslatedRoot(Object rootObject, Activity originalRootActivity, XamlSchemaContext schemaContext)

  at Microsoft.Activities.Design.ExpressionTranslation.ExpressionTranslator.TranslateInternal(XamlReader inputXamlReader, String localAssemblyPath, String compiledExpressionRootTypeName)

  at Microsoft.Activities.Design.ExpressionTranslation.ExpressionTranslator.Translate(TextReader textReader, XamlSchemaContext schemaContext, String localAssemblyPath, String compiledExpressionRootTypeName)

  at Microsoft.Workflow.Service.Build.ExpressionTranslationBuildTask.TryTranslate(String xamlFile, String typeName, XamlSchemaContext schemaContext, String translatedXamlFile)

  at Microsoft.Workflow.Service.Build.ExpressionTranslationBuildTask.Execute()

  at Microsoft.Build.Framework.ITask.Execute()

  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

  at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() OrderWorkflow2013

After installing and configuring Workflow Manager and Service Bus, I'm getting 403.

$
0
0

I've spent the day installing SharePoint 2013 on a Windows Server 2012 environment. This server is not the domain controller. Following instructions on how to install and configure Workflow Manager and service bus, it appears although I'm following the instructions (and I get no errors), something is not working.

If I try to go to the website that it creates in IIS http://localhost:12291 I get a 403 error. Also if I perform the powershell query to get the port number "Get-WFFarm | ft WFMgmtHttpPort" I don't get any value returned to me.

Until I validate that the Workflow Manager is installed and working, I will not attempt to pair it to the SharePoint 2013 farm. Which hopefully makes this a Workflow Manager question not a SharePoint issue.

Can anyone offer any suggestions please? Should I even get a valid webpage if I hit localhost:12291? According to one walkthrough I've looked at I should get an XML display of workflow and security configurations.

Workflow Manager Backend services starts and then immediately stops.

$
0
0

I cannot start the Workflow Manager Backend service.  It starts and then immediately stops.  The event log shows the error "Service cannot be started.  System.Security.Crytography.CryptographicException: Keyset does not exist". 

This problem may have started when the password for the account that the service runs under expired.

The Windows Fabric Host Service and the Service Bus Gateway and Service Bus Message Broker services are all running.


SJT00

window azure sharepoint 2013 foundation license question

$
0
0
I want to create a basic SharePoint foundation 2013 and make it public on azure. Is there any license needed?

SharePoint Designer 2013 -- Workflow Manager is required to create Workflow

$
0
0

Hi,

Is workflow manager is required to create workflow in SharePoint Designer 2013 for List Workflow. Is there any other alternative for this.

With Regards,

Jaskaran Singh Bhatti

what is the windows server 2013 license version than I need to install workflow manager 1.0

$
0
0

what is the windows server 2013 license version than I need to install workflow manager 1.0?

enterprise or standard? can I install it on datacenter?

please provide me with the reference.

thanks

HttpSend to call custom wcf service

$
0
0

Hi,

I've developed a workflow in Visual Studio and that is invoking a custom WCF service that I've developed.  But the workflow gets '401 Unauthorized' while try to access the cusom service. I've used a network monitor to find out the details. However the workflow can access the SharePoint contents using out of the box REST API.

After investigating the http traffic, I've found while the workflow is calling REST API, the http header 'authorization' has access-token filled automatically. However while my custom workflow is invoked by workflow, the authorization header is just 'Bearer', so access-token is missing. Is there any way I can access the token in workflow and pass it in header to call my custom wcf server? Or is there any suggestion on how to call custom wcf service from sharepoint workflow 2013?


Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com



Workflow Manager 1.0 configuration- Specified RunAs account is invalid

$
0
0

Hello - I am trying to install and configure Workflow manager 1.0. As part of workflow manager configuration specifying the user id inConfigure Service Account  section throwing error as "Specified RunAs account is invalid".

I tried different ways and means suggested in forums and KBs - but I think it is unable to validate the user in Active Directory. Our Active Directory is AD 2003 functional level and wondering it has any issues with Workflow manager 1.0?

Here are the environment details:

WF Machine: Windows Server 2008 R2 SP1

AD: Active Directory 2003

Workflow Manager 1.0 installed and also applied the below latest workflow and service bus hotfixes.

http://support.microsoft.com/kb/2799754http://support.microsoft.com/kb/2799752

Also moved the service account to the default OU=Users container in AD as specified in below forum but no luck.

 http://social.msdn.microsoft.com/Forums/en-US/servbus/thread/3d803e15-606a-4f06-96fe-97c23ad3c01a

I am not sure where the issue is wondering if any one has run into similar issue. Appreciate any feedback.

Installation issue - on Windows 7 - Require a "Token Provider Service"

$
0
0

Attempting to install on Windows 7 (Development/trialling)

Getting error:

Starting
Endpoint=sb://DavidT-7L.syncsoft.com.au/WorkflowDefaultNamespace;StsEndpoint=https://DavidT-7L.syncsoft.com.au:9355/WorkflowDefaultNamespace;RuntimePort=9354;ManagementPort=9355

Processing completed
Installing auto-generated certificate.
Granting 'Log on as Service' privilege to the RunAs account.
Workflow Manager configuration starting.
Configuring Workflow Manager runtime settings.
Could not successfully create management Service Bus entity 'WF_Management/WFTOPIC' with multiple retries within a timespan of 00:02:05.7892585.. The exception of the last retry is: The token provider service was not avaliable when obtaining a token for 'https://davidt-7l:9355/WorkflowDefaultNamespace/$STS/Windows/'..

Do I need an STS?  Do i have to install sharepoint (Foundation 2012) as well (for its STS)?

Any ideas?

Thanks

david tuke

WFM Tools for visual studio 2013

$
0
0

Hi everybody, I've setup a developer machine for workflow manager 1.0 on a windows server 2012 r2 box (after CU2 now wfm work also an 2012 R2!) and visual studio 2013 BUT I cannot design workflows (missing WFM activities on tool box and when trying to manually add them I receive an incompatibility warning...) nor "traslate" wf manually created (on a visual studio 2012 box those wf works and the "translation" succeed).

I'm not developing wf for sharepoint but only for WFM, so I don't install any Sharepoint tools...do I have?

Does anybody succeed in developing and deploy wfm workflows with Visual Studio 2013?

Thanks!

Workflow Manager | How to host WF 4.5 workflow which are already written

$
0
0

Hi 

I have written a workflow in WF 4.5. It is a XAMLX . I want to use Workflow Manager to host this service. 

Should I re-write the workflow again? What are steps involved to host this workflow in Workflow Manager?

Can anyone please help guide me?

Regards,

RK


Radhakrishna

Workflow Manager Backend service fails to start - FatalException

$
0
0

Hi,

I installed Workflow Manager 1.0 (with default recommended configuration) and the Cummulative Update 1 and activated the feature on SharePoint 2013. I restarted my server.

The Workflow Manager Backend service cannot start. An attempt is done every 30" but it's always fails. The errors I see in the event viewer (every 30") are the following:

Error 1

Application: Microsoft.Workflow.ServiceHost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Workflow.Common.FatalException
Stack:
   at Microsoft.Workflow.Common.Fx+<>c__DisplayClass2.<FailFast>b__0()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

Error 2

Faulting application name: Microsoft.Workflow.ServiceHost.exe, version: 1.0.20922.0, time stamp: 0x505e1b24
Faulting module name: KERNELBASE.dll, version: 6.2.9200.16451, time stamp: 0x50988aa6
Exception code: 0xe0434352
Fault offset: 0x000000000003811c
Faulting process id: 0x25c0
Faulting application start time: 0x01cefd844175ec32
Faulting application path: C:\Program Files\Workflow Manager\1.0\Workflow\Artifacts\Microsoft.Workflow.ServiceHost.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 7fb79f6a-6977-11e3-9401-0050569055b0
Faulting package full name:
Faulting package-relative application ID:

As a result I cannot deploy workflows on SharePoint using Visual Studio. I get a 500 error during activation of the related feature.

Any ideas?


Dimitris Papadimitriou, Software Development Professional

Currupted Workflow Manager Configuration, RE-Installation Guidence?

$
0
0

Dear All,

We have few workflows which are currently running in our SP 2013 server farm. The workflows stopped working for sometime, when we examined the errors, we could see that we are no longer able to open the workflow manager and Service Bus configuration wizards, they say a certificate is missing in the certificate Store.
But on visiting the certificate store, I can see that there is a certificate with the Thumbprint specified in the error but it is expired.

We are not able to find any guidance on how to solve these errors. The Workflow Manager documentation doesn't have this info as on date.

We can't make our workflows run in the usual way.

We can't find any guidance on how to re-install the Workflow Manager on such server Farm with workflows deployed and with their history.

Could you please let us know any possible solution.

Best regards,
Prem


-Prem

Sharepoint 2013 Workflow not working after restoring content db from another machine

$
0
0
 

I have situation that when I update my content database from production server which is very similar to development environment ,my workflow stops working .All workflow task gets terminated automatically.This happens only when I restore the content database.

How to resolve this issue .

Thanks in Advance.


workflow manager | How to use custom code acitivity that does not have XAML

$
0
0

Hi 

I have create a custom code activity which will write to event log. I have followed example mentioned in

How to: Create a Custom Activity for Workflow Manager 1.0. The only difference being I have created a code activity (no XAML file). when I try to publish the workflow, I get following error 

Cannot create unknown type '{wf://workflow.windows.net/$Current/$Activities}<Custom Type Name>'..  


I updated "Translate" method in "WorkflowUtil.cs" like below 

public static XElement Translate(string xamlFile)
        {
            string translatedWorkflowString = null;Assembly wfActivityAssembly = Assembly.LoadFile(@"CustomCodeActivitiesSample.dll");
            XamlXmlReaderSettings settings = new XamlXmlReaderSettings();
            settings.LocalAssembly = wfActivityAssembly;

            using (XamlReader xamlReader = new XamlXmlReader(xamlFile, settings))
            {
                TranslationResults result = ExpressionTranslator.Translate(xamlReader);
                if (result.Errors.Count == 0)
                {
                    StringBuilder sb = new StringBuilder();
                    using (XmlWriter xmlWriter = XmlWriter.Create(sb, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true }))
                    {
                        using (XamlXmlWriter writer = new XamlXmlWriter(xmlWriter, result.Output.SchemaContext))
                        {
                            XamlServices.Transform(result.Output, writer);
                        }
                    }
                    translatedWorkflowString = sb.ToString();
                }
                else
                {
                    throw new InvalidOperationException("Translation errors");
                }
            }

            return XElement.Parse(translatedWorkflowString);
        }

Now I get another error 

The name 'Workflow1' of the x:Class attribute does not match the activity name 'CustomDebugActivitiesSample'. Either specify the activity name or use the overwriteXClass argument to overwrite the value of the x:Class attribute for the XAML content

I have followed steps mentioned in following forum thread 

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/71f0dfbb-d04e-4e5d-9324-5b4d5b097396/error-when-publishing-wf-containing-custom-code-activity-to-workflow-manager-10?forum=wflmgr. 


Still it is not working. Are the custom code activities (no XAML) supported in workflow manager?

Regards,

RK


Radhakrishna




Error when publishing WF containing custom code activity to workflow manager 1.0

$
0
0

Hello:

Workflow manager sounds every exciting to me, I am trying it out to see if it will work for me.

I downloaded "CustomCodeActivitySample" of workflow manager 1.0, and when I ran, I got following exception:

Workflow XAML failed validation due to the following errors:
Cannot create unknown type '{clr-namespace:HashActivity;assembly=HashActivity}ComputeHash'. HTTP headers received from the server - ActivityId: 2a1e4d9d-90bd-4f59-a1fc-d3673194dd54. NodeId: NDL0714. Scope: /CustomCodeActivitiesSample. Client ActivityId : 235d66c1-bbe6-4982-8242-833a6bc1f6b1.

more details:

Microsoft.Workflow.Client.ActivityValidationException was unhandled
  HResult=-2146233088
  Message=Workflow XAML failed validation due to the following errors:
Cannot create unknown type '{clr-namespace:HashActivity;assembly=HashActivity}ComputeHash'. HTTP headers received from the server - ActivityId: efe2c3cb-e6fd-4124-88a1-6c8e72aecb06. NodeId: NDL0714. Scope: /CustomCodeActivitiesSample. Client ActivityId : 73d7b773-be53-4a7b-b2d8-ba687e60a4f4.
  Source=Microsoft.Workflow.Client
  ActivityName=ProcessMovies
  ScopePath=/CustomCodeActivitiesSample
  StackTrace:
       at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
       at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
       at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)
       at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description)
       at Microsoft.Workflow.Samples.Common.WorkflowManagementClientExtensions.PublishWorkflow(WorkflowManagementClient client, String workflowName, String xamlFilePath, Collection`1 externalVariables, IDictionary`2 configValues, SubscriptionFilter activationFilter) in c:\WFM_C\C\Microsoft.Workflow.Samples.Common\WorkflowManagementClientExtensions.cs:line 45
       at Microsoft.Workflow.Samples.Common.WorkflowManagementClientExtensions.PublishWorkflow(WorkflowManagementClient client, String workflowName, String xamlFilePath, SubscriptionFilter activationFilter) in c:\WFM_C\C\Microsoft.Workflow.Samples.Common\WorkflowManagementClientExtensions.cs:line 29
       at CustomCodeActivitySample.Program.Main(String[] args) in c:\WFM_C\C\CustomCodeActivitySample\Program.cs:line 39
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.Net.WebException
       HResult=-2146233079
       Message=The remote server returned an error: (400) Bad Request.
       Source=Microsoft.Workflow.Common
       StackTrace:
            at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
            at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
            at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
       InnerException:

Thanks


ahorse

Workflow Manager | Use of Subscribe Activity

$
0
0

Hi 

I am new to workflow manager and exploring the use of pub/sub acitivities. What I have understood is to "Receive Notification" activity is some what similar to "Receive and Send Response" activity WF4.5. However, I did not understand the use of "Subscribe" activity. I have downloaded, pub/sub sample activities from MSDN Using Pub/Sub Activities

In this sample "Subscribe" activities has been used in "OrderTally.xaml" but not in "ProcessOrder.xaml". Can anyone please explain  when to use "Subscribe" activity? Do we always have to use Subscribe with Receive Notification activity? 

Regards,

RK


Radhakrishna


changing the RunAs account without reinstalling Workflow Manger

$
0
0

For SharePoint 2013 installation, I need to change the RunAs account.

is it possible to change the RunAs account without reinstalling Workflow Manger/SB Manager without complete uninstall? Even if I remove all servers from the farm, seems like the RunAs account is always in Management db, so RunAs account is pre-populated with the old account.

Thank you

Workflow Manager | Dynamic update of workflow instances hosted in Workflow Manager 1.0

$
0
0

Hi 

Can anyone please let me know, how do you update running workflow instance which is hosted in Workflow Manager? 

I aware of dynamically updating WF 4.5 workflow instances, but not in workflow manager.

Regards,

RK


Radhakrishna


Viewing all 897 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>