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

When I have been created a new workflow via SharePoint Designer 2013, I clicked publish, I got the following error:

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

Details:Microsoft.SharePoint.SPException: 
App Management Shared Service Proxy is not installed.
at Microsoft.SharePoint.AppRegistration.GetProxy(SPServiceContext serviceContext)
at Microsoft.SharePoint.AppRegistration.AddOrUpdateAppNoPermissionCheck
(SPAppPrincipalInfo appInfo)
at Microsoft.SharePoint.SPAppPrincipalManager

Errors were found when compiling the workflow

Cause:

App Management Service was not started or it was started but it is not configured properly.

Solution:

  • Open Central administration as Administrator/farm account.
  • Below System Settings > Click on manage services on server
    Manage Services On Server
  • Check  App Management Service status. if it stopped, try to start it.

App Management Service

  • Configure App Management Service by goings to Application Management > Manage service applications.
    Application Management - Manage Service Applications
  • Click New > App Management Service.

Add App Management Service

  • Configure App Management Service.

Configure App Management Service

  • Make Sure that it has been created and started properly.

App Management Service Provisioned

  • Go back to SharePoint Designer > Workflow > Open your workflow > Click Publish.

Publish Workflow

The workflow should now be published properly.

Enjoy 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s