question

WinstonFroidPinto-1736 avatar image
0 Votes"
WinstonFroidPinto-1736 asked YiLu-MSFT commented

Designer 2010 workflows stuck at 'Starting' after migration from 2016 to 2019;The workflow failed to start due to an internal error

Hi,

We have migrated many site collections from 2016 to 2019 which includes designer workflows. All the workflows have been successfully migrated, but they are stuck at Starting stage whenever a new item is added; it says the workflow failed to start due to an internal error

I have tried creating a simple workflow which logs to workflow history list but even there we are facing the same issue. We have even checked ULS logs/event viewer but nothing which descibes more about the cause of this error
Any help is appreciated.

Regards,
Winston.

sharepoint-devwindows-server-infrastructuresharepoint-workflow
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @WinstonFroidPinto-1736
To narrow down the issue, I have some questions to confirm:
1. Do these flow refer to some lists or other things in SharePoint 2016 what are not migrated to SharePoint 2019?
2. Do you mean that if you create a new workflow in SharePoint 2019, will this error still appear?

0 Votes 0 ·

Hi ,

Yes i created a fresh designer 2010 workflow with one line which just logs to workflow history list, even that says workflow failed to start due to an internal error and stuck on starting.

This issue occurs in only one site collection, other site collections designer workflows are working fine.

Regards,
Winston.

0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered YiLu-MSFT commented

Hello Winston P,

Thank you for your question.

This issue has already occurred similarly in SharePoint Designer 2013, here is an example below of how you would resolve this within SharePoint Designer 2013:

  1. Delete the cache by deleting all files in the folders below.
    C: \ Users \ UserName \ AppData \ Roaming \ Microsoft \ Web Server Extensions \ Cache
    C: \ Users \ your username \ AppData \ Local \ Microsoft \ WebsiteCache

  2. Go to All files -> Workflows -> Click workflow name -> Click workflow name.xmol -> Edit File in Advanced Mode -> Save -> Publish.

3.Install the latest updates for SharePoint Designer 2013.

  1. Uninstall SharePoint Designer 2013 and reinstall.

  2. Restart the server.

If your problem is not related to SharePoint Designer 2013 I believe you can apply for earlier or later versions.

If the answer was helpful, please don't forget to vote up or accept as an answer, thanks.

Yours sincerely,

Samuel L

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi ,

I created a fresh designer 2010 workflow with one line which just logs to workflow history list, even that says workflow failed to start due to an internal error and stuck on starting.

This issue occurs in only one site collection, other site collections designer workflows are working fine.


Regards,
Winston

0 Votes 0 ·
YiLu-MSFT avatar image YiLu-MSFT WinstonFroidPinto-1736 ·

Hi @WinstonFroidPinto-1736
Does Limitless's advice help you?

0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @WinstonFroidPinto-1736

The only debugging option that is available in every type of SharePoint deployment is writing log messages to the workflow history list. By using this method, you can use either the Log to History List action in SharePoint Designer 2013 or the WriteToHistory activity in Visual Studio 2012 to write a string message as a new item to the list, specified in the workflow association, which is the container for all history logging messages. These can be simple strings or constructed by concatenating the contents of variables within the workflow.


Try Upgrade service applications to SharePoint Server 2019

When you upgrade from SharePoint Server 2016 to SharePoint Server 2019, you must use a database attach upgrade, which means that you upgrade only the content for your environment and not the configuration settings. After you have configured the SharePoint Server 2019 environment and copied the content and service application databases, you can upgrade the service applications to SharePoint Server 2019. This article contains the steps that you take to upgrade the service applications.

https://docs.microsoft.com/en-us/sharepoint/upgrade-and-update/upgrade-service-applications-to-sharepoint-server-2019


If the Problem Persists try Debugging
There are four workflow debugging techniques that can be leveraged by workflow authors:

Logging to the workflow history list
Setting breakpoints
Sending debug messages to the console
Monitoring traffic between SharePoint and Workflow Manager with Fiddler

Use the below link for further reference
https://docs.microsoft.com/en-us/sharepoint/dev/general-development/debugging-sharepoint-server-workflows


Each option has advantages and disadvantages. It helps to have an understanding of what is possible when using the two workflow authoring tools (SharePoint Designer 2013 or Visual Studio 2012), as well as the type of workflow deployment (on-premises or Office 365). The following table contains a matrix of authoring tools, deployment targets, and the options available in each scenario.


Hope this answers all your queries, if not please do repost back.
If an Answer is helpful, please click "Accept Answer" and upvote it : )

Regards,

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.