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

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

Recently while working on a SharePoint hosted add-in I got the below error which says:

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.

Also read:
– How to use Deferred promise and then in Rest API in SharePoint Online or SharePoint 2013?

– Introduction to cloud computing and Microsoft Azure

– SharePoint Online Site Workflow and Initiation Form Parameters example using SharePoint designer workflow

The full error looks like below:

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

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

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

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

Another approach:

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

Hope this will be helpful.

Similar SharePoint 2013 Tutorials

About 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

View all posts by Bijay Kumar →

Leave a Reply