Troubleshooting “There was an error during the operation” when deploying SharePoint Apps with Visual Studio

Posted Monday, December 15, 2014 4:11 PM by CoreyRoth

When working with SharePoint Apps in Visual Studio 2013, you might receive the following error during deployment.

App installation encountered the following errors:
  
  @"Error 1
        CorrelationId: c423d0af-c32b-4702-8be3-a3c1a4b3010e
        ErrorDetail: There was an error during the operation.
        ErrorType: Configuration
        ErrorTypeName: Configuration
        ExceptionMessage: RestrictAssociationToId - ListId Lists/ListName
        Source: Common
        SourceName: Common App Deployment
Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.

VisualStudioErrorWorkflow

Although there are a number of causes for this, I find that these are typically related to dependencies in your Feature Manager.  Take a look at mine below.

VisualStudio2013FeatureManager

As you can see for some reason, my list is not included in the package.  Although this example is simple, it’s not uncommon when you start dealing with multiple features and lists.  The specific ExceptionMessage trictAssociationToId - ListId Lists/ListName is because I have a workflow associated with the list, but the list is not getting deployed.  Once I add the list back to the feature, the issue goes away.

If you start receiving errors like this go back and look at your feature manager and make sure everything in your project is getting deployed in the order you want.

Comments

No Comments

Leave a Comment

(required)
(required)
(optional)
(required)