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

Register-SPWorkflowService - The remote server returned an error: (500) Internal Server Error

$
0
0

In a multi-server FARM deployment, I’m struggling to get the workflow manager to finalise via the PowerShell command, Register-SPWorkflowService. When executing the command (Register-SPWorkflowService – SPSite http://[FQDNSite]–WorkflowHostUri http://[FQDN]:12291/ -AllowOAuthHttp –Force), I get the error mentioned in the title. When digging deeper into the logs (Applications and Services à Microsoft Workflow à Operations) I get the following warnings and errors:

(Warning)

Failed SQL command after 1 tries with error '18456'. Exception: System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

  at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

(Error)

Error processing management request. Method: GET, RequestUri: http://[FQDN]:12291/ServiceManagement/$System/$Metadata/json/1/, Error: System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

It is my understanding that the PowerShell command takes the context of the logged on user for this command. I’m logged in as “FARM” account and the script window was opened under “Run as Administrator” instruction.

All checks have been completed and all services are running as expected. GET-WFFarm and GET-WFFarmStatus returns normal.  All services are running under domain accounts with sufficient privileges. 

Workflow Manager CU2 to get 1.0 Refresh and Workflow Manager 1.0 Refresh is currently NOT installed as it didn’t work before when these updates were installed. 

Under the CA patch level page, I did pick up the following KB being required under Microsoft Workflow Solutions Framework (http://support.microsoft.com/kb/2880963). Installing this is my next step.

Is there anything else I should try or is the patch the next best step?


http://fhpienaar.wordpress.com/ (BLOG) http://www.mint.co.za/ (Company WEB)



Workflow Manager Server 'Faulting application name : Microsoft.Workflow.ServiceHost.exe'

$
0
0

Workflow gets suspended or terminated after a time

Getting error on workflow Manager server under event logs

Application Event log id is 1000

Faulting application name: Microsoft.Workflow.ServiceHost.exe, version: 1.0.40131.0, time stamp: 0x52ef34e1 Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x5315a05a Exception code: 0xe0434352 Fault offset: 0x000000000000940d Faulting process id: 0x1628 Faulting application start time: 0x01d04cd5b966ad0a 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: 277be834-b8c9-11e4-a2ae-0050569d29be

.NET Runtime log id :- 1026

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.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()

Regards,

Rahul

Capacity Planning for Workflow Manager

$
0
0

Some information is available regarding highly available Workflow Manager implementations but I cannot find any information regarding when or how you should perform capacity planning for the workflow manager.

A few questions are jumping out at me.

  • When would we want/need a dedicated Workflow Manager server? (I can understand if this was shared between multiple farms this may be a benefit but what about from a pure capacity perspective).
  • Are there any case studies or documentation that we can use as a baseline estimation for capacity for the workflow manager?
  • Generally speaking for a small/medium farm deployment is it expected that this service also run on the application server?

certifications MCITP, MCTS, MCPD | blog http://corypeters.net | twitter @cory_peters

Workflow manager IIS site throws a 403 Forbidden error and published workflows throw an error 400 bad request

$
0
0

Hello All , Request your help on the below issue ,

We have a single server farm SP 2013 where workflow was working as expected but its broken now , Not sure what caused this. Workflow manager is installed alongside Service Bus. Workflow Manager client is installed on the same SP server.

We are able to create and publish the workflows from SP Designer without errors but when we start the workflow from SharePoint list we get an error " Sorry something went wrong". We have tried creating new workflows but the same problem.

We receive the below error in event viewer.

Error processing management request. Method: PUT, RequestUri: http://server URL:12291/$Workflows/89c767d2-82d2-4bd9-8e5e-dcace81d844f, Error: System.ArgumentException: The remote server returned an error: (400) Bad Request. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.

   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.EndGetResponse(GetAsyncResult`1 thisPtr, IAsyncResult ar)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
   --- End of inner exception stack trace ---

Server stack trace: 

Exception rethrown at [0]: 
   at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.Workflow.Gateway.HttpAsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.Workflow.Gateway.WorkflowServiceGateway.<>c__DisplayClass6a.<EndCreateOrUpdateWorkflow>b__69()
   at Microsoft.Workflow.Gateway.WorkflowServiceGateway.ExceptionFilter[T](Func`1 body)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)

ULS logs give below error 

Error 1 - Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId: Servername. Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.   
 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)     -
 -- End of inner exception stack trace ---    
 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.WorkflowManager.Publish(WorkflowDescription description, Boolean terminateActiveInstances)    
 at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishWorkflow(String serviceGroupName, WorkflowDescription workflow)    
 at Microsoft.SharePoint.WorkflowServices.WorkflowProxy.CreateDefinitionSubscription(String subscriptionName, String eventSource, List`1 eventTypes, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext) StackTrace: 
 at Microsoft.Office.Server.Native.dll: (sig=35339f9c-8871-4ef1-9118-9c1bd0cb6598|2|microsoft.office.server.native.pdb, offset=131CE)
 at Microsoft.Office.Server.Native.dll: (offset=21B4D)

Error 2 - Error publishing workflow subscription (republish or retry publish) information: Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId: ServerName. Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.    
 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)     -
 -- End of inner exception stack trace ---    
 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.WorkflowManager.Publish(WorkflowDescription description, Boolean terminateActiveInstances)    
 at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishWorkflow(String serviceGroupName, WorkflowDescription workflow)    
 at Microsoft.SharePoint.WorkflowServices.WorkflowProxy.CreateDefinitionSubscription(String subscriptionName, String eventSource, List`1 eventTypes, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext)    
 at Microsoft.SharePoint.WorkflowServices.FabricSubscriptionService.<>c__DisplayClass1.<CreateDefinitionSubscription>b__0()    
 at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)    
 at Microsoft.SharePoint.WorkflowServices.FabricSubscriptionService.CreateDefinitionSubscription(String subscriptionName, Guid eventSourceId, String eventSource, List`1 eventNames, String definitionName, IDictionary`2 metadata, WorkflowEventContext eventContext)   
 at Microsoft.SharePoint.WorkflowServices.WorkflowSubscriptionStorageEventReceiver.ItemUpdating(SPItemEventProperties properties)

Error3 - Microsoft.Workflow.Client.InternalServerException: An internal error occured. For more details, please see the server logs. HTTP headers received from the server - ActivityId: ba6e77cb-aaae-41a0-9cc8-1ea817d0045e. NodeId: ServerName. Scope: /SharePoint/default/bc694777-7bbb-473e-ab2d-20087221a97a/5229793b-31a1-44b1-9b0b-374f38b762fd. Client ActivityId : a6daec9c-7139-7034-b4ee-edeb1f96ec2a. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error. at  SPRequest.AddOrUpdateItem: UserPrincipalName=i:0).w|s-1-5-21-182846760-3036401646-508972453-351846, AppPrincipalName= ,bstrUrl=http://sharepointsite ,bstrListName={48A21758-9123-48F0-9BDE-9EB632B07BC6} ,bAdd=False ,bSystemUpdate=False ,bPreserveItemVersion=False ,bPreserveItemUIVersion=False ,bUpdateNoVersion=False ,pbstrNewDocId=00000000-0000-0000-0000-000000000000 ,bHasNewDocId=False ,bstrVersion=16 ,bCheckOut=False ,bCheckin=False ,bUnRestrictedUpdateInProgress=True ,bMigration=False ,bPublish=False ,bstrFileName=<null>

Any help appreciated. Thanks in advance.



Creating New SharePoint List Based on Saved List Template

$
0
0
Is it possible to create a new SharePoint List based on a saved list template from within a SharePoint 2013 workflow created in SharePoint Designer 2013 and if so, how is this done?

Certificate requested with thumbprint xxxxxxxxxxxxxxx Not Found in the certificate LocalMachine\My

$
0
0

I started seeing this error in the event viewer log lately. This is a SharePoint 2013 Central Admin box with Workflow Manager 1.0 installed. On Premise.

Log Name:      Application
Source:        WorkflowServiceBackend
Date:          2/25/2015 5:31:25 PM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      mySPServer
Description:
Service cannot be started. System.InvalidOperationException: Certificate 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX' is not found in the certificate store.
   at Microsoft.Activities.Hosting.Security.WorkflowEncryptor.DecryptMasterKey(String thumbprint, String encryptedMasterKey)
   at Microsoft.Workflow.Management.WorkflowEncryptionSettings.InitializeInternal()
   at Microsoft.Workflow.Management.WorkflowServiceConfiguration.get_EncryptionSettings()
   at Microsoft.Workflow.Management.WorkflowServiceConfiguration.GetResourceManagementConnectionStringFromConfig()
   at Microsoft.Workflow.Management.WorkflowServiceConfiguration.get_ConfigProvider()
   at Microsoft.Workflow.Service.WorkflowServiceBackendHost.WorkflowServiceBackendStartAsyncResult..ctor(WorkflowServiceBackendHost host, EventTraceActivity traceActivityId, TimeSpan retryTimeout, AsyncCallback callback, Object state)
   at Microsoft.Workflow.Service.WorkflowServiceBackendHost.Start(Boolean keepAlive)
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback...
Event Xml:<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"><System><Provider Name="WorkflowServiceBackend" /><EventID Qualifiers="0">0</EventID><Level>2</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime="2015-02-26T00:31:25.000000000Z" /><EventRecordID>199301</EventRecordID><Channel>Application</Channel><Computer>mySPServer</Computer><Security /></System><EventData><Data>Service cannot be started. System.InvalidOperationException: Certificate 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX' is not found in the certificate store.
   at Microsoft.Activities.Hosting.Security.WorkflowEncryptor.DecryptMasterKey(String thumbprint, String encryptedMasterKey)
   at Microsoft.Workflow.Management.WorkflowEncryptionSettings.InitializeInternal()
   at Microsoft.Workflow.Management.WorkflowServiceConfiguration.get_EncryptionSettings()
   at Microsoft.Workflow.Management.WorkflowServiceConfiguration.GetResourceManagementConnectionStringFromConfig()
   at Microsoft.Workflow.Management.WorkflowServiceConfiguration.get_ConfigProvider()
   at Microsoft.Workflow.Service.WorkflowServiceBackendHost.WorkflowServiceBackendStartAsyncResult..ctor(WorkflowServiceBackendHost host, EventTraceActivity traceActivityId, TimeSpan retryTimeout, AsyncCallback callback, Object state)
   at Microsoft.Workflow.Service.WorkflowServiceBackendHost.Start(Boolean keepAlive)
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback...</Data></EventData></Event>

I tried running Get-WFFarm and got the following error.

PS C:\> get-wffarm
get-wffarm : Certificate requested with thumbprint 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX' not found in the
certificate store LocalMachine\My.
At line:1 char:1+ get-wffarm+ ~~~~~~~~~~+ CategoryInfo          : NotSpecified: (:) [], InvalidOperationException+ FullyQualifiedErrorId : System.InvalidOperationException

No matter what I do I get the certificate requested with thumbprint XXXXXXXXXX is not in certificate store LocalMachine\my.

I opened mmc.exe and add local certificates. I checked in the Personal security store and I do see a WMSvc-MySPServer but it does have a different thumbprint.

How do I go about fixing this? Any workflow powershell command I try to run I get the same error. Thank you for any help.


Building a resilient HttpSend (HttpGet) activity

$
0
0

What is the best practice when using a HttpSend (HttpGet) windows workflow activity to call a web service / web api for hosted office 365 (online) workflows.

I am mostly interested in retrying errors.

  • I know there is a built in property RetryOnConnectionFailure - what about Http status code like 503 Service Unavailable or 504 Gateway Timeout 
  • There seems to be a built in property ApplyDefaultRetryCodes - but it does not show up in the designer, and there is almost zero documentation around it
  • Is the answer to build our own custom activity and make a do -- while logic around it?
  • Is it possible to use HttpErrorHandler delegate in declarative workflows?

And finally, where can I find good documentation for Windows workflows?

Thanks

Change database connection string

$
0
0

Hi, does anybody know if it possible (and eventyally how) to change the DB connection string of the farm (both WF and SB). I do not need to change DB or server, just a parameter of the connection string.

Thanks,

Simone


Tracking

$
0
0

Does Workflow Manager 1.0 support adding custom tracking?

Thanks

Getting configuration from withing custom CodeActivity

$
0
0

Hi,

is it possible to get configuration values of currently running workflow from within custom code activity?

I have a scenario where I want to configure tenant id for a workflow definition and then use that tenant id inside custom activities. Problem I'm having is that it seems impossible to get configuration values or the running workflow from within the custom activity.

I took a look at the GetConfigurationValue activity and it calls context.GetExtension(ConfigurationExtension), but ConfigurationExtension class is internal to Microsoft.Workflow.Hosting so it's not possible to use it.

I tried using NativeActivity and then running GetConfigurationValue inside the native activity, but I get an error:

"The provided activity was not part of this workflow definition when its metadata was being processed.  The problematic activity named 'GetConfigurationValue' was provided by the activity named 'MyCustomNativeActivity'"

I don't want to use MyCustomActivity + GetConfigurationValue inside a third declarative activity that would combine them because it's cumbersome and I would need to deploy declarative activities separately.

Is there any supported solution for getting configuration values from within custom code activity?

Ivan

Load balancing WFM 1.0

$
0
0

Hi!

Got a service bus farm containing 3 servers.
The same severs also got WFM 1.0

Here I have a problem, I want to use a custom DNS for the sites and load balance it.

I use autogenerated certificates and thats a problem, they are all signed to the first server in the farm.

Most guides on the internet are using severhostname and no custom dns with loadbalancing.

It seems I can't get around the problem which leaves error 401 because of no real trust.

Is there any way to use custom DNS and loadbalance this?

Thank you in advance!

How to update List from other List

$
0
0

I have 2 Lists

Mission Task List have 3 columns: Title, Status ( Not Started, In Progress, Complete ) and Note

Report Task List have 4 columns: Title, Status( Not Started, In Progress, Complete ), Mission ( Lookup Column Title of Mission List ) and Note

I want if item in Report List change Status ( when add new or edit Task )  will update status in Mission List

I know workflow can do it but I don't know how to do




Add Custom Activity to a Workflow (Sharepoint 2013)

$
0
0

Hello,

I have a development environment with two servers:

Server1: Domain Controller, SQL Server and Workflow Manager

Server2: SharePoint Farm (2013) + Visual Studio.

In step 1, I develop a workflow with SingleTask , LookUpSPList, WriteToHistory, ...

I deploy my workflow and I can test it in my environment without problem.

In Step 2, I develop a custom code activity, and I try to use it in my workflow.

After doing these steps:

On the Workflow Manager Server:

     - Copy activity assembly to following locations:

          > %ProgramFiles%\Workflow Manager\1.0\Workflow\Artifacts

          > %ProgramFiles%\Workflow Manager\1.0\Workflow\WFWebRoot\bin

     - Add your activity class to the white-list

          > Copy AllowedTypes.xml  also to above two locations

     - Restart “Workflow Manager backend” service

* On SharePoint box you have to:

     - Copy activity assembly to SharePoint box and install it in the GAC.

     - Reset IIS

I deploy my workflow.

When I try to activate feature, I have this message:

Error occurred in deployment step 'Activate Features': Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors:
Invalid type(s) 'TestActivity.TestCodeActivity'.
HTTP headers received from the server - ActivityId: 245e1654-c371-4894-877d-bdfc8e199bae. NodeId: ADDC. Scope: /sharepoint/default/55970cea-4d71-4a9d-8273-b144c64b08cb/6f465a87-16c3-4312-8283-8f6594c399f2. Client ActivityId : 263a39fc-8d9f-42dd-99a6-de7631748b80. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
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)

Colocation of Workflow Manager and Office Web Apps Server?

$
0
0

Hi everyone

I understand that it is not supported to have Office Web Apps Server and "other server applications" on the same machine.

See: https://technet.microsoft.com/en-us/library/jj219435.aspx#software

Is Workflow Manager a server application in these terms?

So in other words: Is it supported to have Workflow Manager and Office Web Apps Server on the same machine?

Thank you in advance.

Helge

Sharepoint 2013 Workflow error for https registration

$
0
0

i have created host header site collection .Both sitecollection and Workflow are on same server

so i am trying to register workflow for https sitecollection 

Register-SPWorkflowService -SPSite "https://abc.dev1.sharepoint.net" -WorkflowHostUri "https://abc1432:12290" 

getting error  "the root of the certificate chain is not a trusted root authority"

even though i have exported certificate from Workflow IIS web site and added under share point trust entry list


Workflow Client Will Not Install

$
0
0

I have built new SharePoint site, created a new Workflow Server to host the Workflow Manager.  The installation went fine and is completed.

But on the SharePoint Server, I cannot get the Workflow Client to install.  Using the WebPlatform Installer (any version), I get the following error:

We're sorry.  The following products have failed to install

Workflow Manager Client 1.0 Refresh
This product did not download successfully:  An exception occurred during the WebClient request.

I then installed the WorkFlow files on the Workflow Manager Server following Spencer Harbar's instructions using Powershell and it downloaded.  I then copied the folder to the SharePoint server and ran the offline install.  All that happened was a Please enter (Y/N): prompt came up, I selected Yes, then got the command line back.  2 dots appeared then nothing happened.

I do not see anything in the Application or System logs to indicate any issues.  Any where else to look and how to correct this?

How to Provide the Certificate Generation key while configuring WorkFlow Manager 1.0

$
0
0

Hi,

I am new to Workflow manager.I am configuring it in a SharePoint Farm with Allow Workflow Management over Http on this computer option.

Its asking for Certificate Generation key for joining to the Farm.

Could anyone help me how to get the Certificate Generation key.

Please advice


Thanks, Vijay Arul Lourdu

Manual workflow not starting

$
0
0
I have four subsites and have same list workflow. It works for one site and not for others. It is not even starting for others

How to renew the expired certificate of workflow manager in sharepoint 2013?

$
0
0

Dear All,

How to renew the expired certificate of workflow manager in sharepoint 2013 and what all steps needs to be done inorder the workflow to work properly.

Thanks & regards,

Asha

Facing problem in task/delegated file approval

$
0
0

Hi:

I am getting error screen(Sorry something went wrong) while approving a delegated file/task.

I have all the required permissions which are needed to approve files/task.

Please provide me some help on this.

I am using Sharepoint 2013 , and workflow manager 1.0 and Nintext workflow 2013.

Hope to hear back soon.

-Thank you

Salesh Mishra

Viewing all 897 articles
Browse latest View live


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