Tuesday, June 10, 2014

Error Skipping the uninstall step because the app for SharePoint is in an invalid state and cannot be uninstalled

Hi All,

Till yesterday, My SharePoint hosted app was working like a charm but today when I did some change in my app and tried to deploy it, visual studio started giving me following error

"Error 1 Skipping the uninstall step because the app for SharePoint is in an invalid state and cannot be uninstalled."

Don't know what happen at the back end but after spending some time I got following power shell command lines which does job for me.

$instances = Get-SPAppInstance -Web
$instance = $instances | where {$_.Title -eq ''}
Uninstall-SPAppInstance -Identity $instance

Hope, this will work for you as well.

Thanks,
Sachin K.



No comments:

Post a Comment