Skipping the uninstall step because the SharePoint Add-in is in an invalid state and cannot be uninstalled error in SharePoint hosted add-in

This SharePoint tutorial, we will discuss how to solve the error: Error occurred in deployment step ‘Install SharePoint Add-in’: A different version of this App is already installed with the same version number. You need to delete the app from the site and the site recycle bin to install this version. Skipping the uninstall step because the SharePoint Add-in is in an invalid state and cannot be uninstalled.

Recently while working on a SharePoint hosted add-in I got the error.

Error occurred in deployment step ‘Install SharePoint Add-in’: A different version of this App is already installed with the same version number. You need to delete the app from the site and the site recycle bin to install this version.

The full error looks like below:

Skipping the uninstall step because the SharePoint Add-in is in an invalid state and cannot be uninstalled
Skipping the uninstall step because the SharePoint Add-in is in an invalid state and cannot be uninstalled

Skipping the uninstall step because the SharePoint Add-in is in an invalid state and cannot be uninstalled

We can change the version number to solve the issue. Here I have changed the version number to 1.0.0.1.

We can change the Version number in the AppManifest.xml file like below:

A different version of this App is already installed with the same version number
A different version of this App is already installed with the same version number

Then I tried deploying from visual studio and it worked fine for me.

Another approach is that you can remove uninstall the app using PowerShell.

$instances = Get-SPAppInstance -Web “UR Site URL”
$instance = $instances | where {$_.Title -eq ‘Name of the App’}
Uninstall-SPAppInstance -Identity $instance

You may like following SharePoint Apps tutorials:

Hope this will be helpful to resolve Skipping the uninstall step because the SharePoint Add-in is in an invalid state and cannot be uninstalled

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

>