The Latest Time Saving Tips for Your SharePoint Deployment

Corey Roth

Subscribe to Corey Roth: eMailAlertsEmail Alerts
Get Corey Roth: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Blog Feed Post

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.

Read the original blog entry...

More Stories By Corey Roth

Corey Roth, a SharePoint Server MVP, is an independent consultant specializing in Cloud technologies such as Azure and Office 365. He also specializes in mobile development. Corey serves as the product manager for two cloud-first mobile app platforms: BrewZap and HappenZap.