in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint 2013, SharePoint 2010, Office 365, SharePoint Online, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

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

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)  
(optional)
(required)  
Add

About CoreyRoth

Corey Roth is an independent SharePoint consultant specializing in ECM, Apps, and Search.
2015 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems