Errors were found when compiling the workflow. The workflow files were saved but cannot be run error in SharePoint online designer workflow

In this SharePoint 2013 tutorial, we will discuss how to fix an error that says: Errors were found when compiling the workflow. The workflow files were saved but cannot be run.

The error I got while publishing 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:

Errors were found when compiling the workflow sharepoint 2013. The workflow files were saved but cannot be run.
Errors were found when compiling the workflow sharepoint 2013. The workflow files were saved but cannot be run.

The workflow files were saved but cannot be run

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 SharePoint designer workflow and open the site once again. Now when we try to publish the workflow to the SharePoint Online site, it published successfully.

I 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:

>