K2 for Sharepoint APP installation error: The specified application identifier is invalid or does not exist
kbt140753
PRODUCTIssue
After using K2 Smartforms (4.16060.2000.3)InstallationAppDeployment.exe on a SharePoint Server to deploy K2 for SharePoint app, the installation finished with an error, but the app installed into the App Catalog.
When trying to install the app, the following error appears: "The specified application identifier 3308eaff-d056-4a32-9b1d-563f81bf06f9 is invalid or does not exist."
The following error appears in the installer trace log for K2 Smartforms:
"K2Application.SetupS2S: Logged Error: Could not setup S2S. Exception: System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'AppPrincipal'.
The argument is null. Supply a non-null argument and try the command again. ---> System.Management.Automation.ValidationMetadataException: The argument is null. Supply a non-null argument and try the command again. at System.Management.Automation.ValidateNotNullAttribute.Validate(Object arguments, EngineIntrinsics engineIntrinsics) at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags) --- End of inner exception stack trace --- at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) at SourceCode.SharePoint2013.Common.Powershell.Runscript(String scriptfile, Collection`1& errors, CommandParameter[] commandParemeters) at SourceCode.SharePoint2013.Common.K2Application.SetupS2S()"
Symptoms
(4.16060.2000.3)InstallationAppDeployment.exe on a SharePoint Server to deploy K2 for SharePoint app.
The installation finished with the following error but the app installed into the App Catalog:
When installing the app the following error appears: "The specified application identifier 3308eaff-d056-4a32-9b1d-563f81bf06f9 is invalid or does not exist."
Ensure that the account used has all necessary rights as per:
http://help.k2.com/onlinehelp/K2blackpearl/ICG/4.7/Content/Prepare/SP/SP_Permissions_AppCat.htm
However quick look in ULS discovered that the tenant account did not have the same permissions on the App Catalog Database.
Resolution
To resolve this issue:
1. Fix the permissions for the App Catalog Database
2. Delete the K2 App on App Catalog and rerun the AppDeloyment.exe file.