Here in this SharePoint 2013 tutorial, we will discuss how we can resolve the issue. Errors were found when compiling the workflow. The workflow files were saved but cannot be run. The error I got while publishing a workflow to SharePoint online list using SharePoint 2013 designer.
When I check the details about the error, the full error message was:
System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. —> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. —> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did
It looks like below:
Recently we were developing an email notification workflow using SharePoint 2013 designer for sharepoint online list. But while publishing the workflow, we got the above error. When we check the details of the error we got to know since there is a connection problem, it was giving the error.
To resolve the issue, we restart the designer workflow and open the site once again. Now when we try to publish the workflow to SharePoint online site, it published successfully.
Hope this will help to resolve Errors were found when compiling the workflow SharePoint 2013. The workflow files were saved but cannot be run issue.
Read some SharePoint workflow tutorials:
Hope this will be helpful.
FREE EBOOK Master in SharePoint Online Office 365
Enter Email to download your FREE SharePoint Online PDF Ebook
Hello Everyone!! I am Bhawana a SharePoint MVP and having about 8+ years of SharePoint experience as well as in .Net technologies . I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools . Now exploring more in SharePoint 2016 :) Hope here I can contribute and share my knowledge to the fullest. As I believe "There is no wealth like knowledge, and no poverty like ignorance"