Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Can't an an App that uses Workflow 2013 on SharePoint Server version

$
0
0

We have a SharePoint hosted App that uses workflows 2013. On one environment we wanted to install it. The environment is SharePoint Server 2013 – we have installed and configured Workflow Manager but still when we want to add an app we see message “Sorry, this app is not supported on your server”.

We have created a test workflow 2013 in SharePoint Designer and we confirmed that it is working.

We have searched the logs and we found exception message

Caught an exception while calling SPCapabilityChecker.GetMissingCapabilities(): Microsoft.Workflow.Client.InvalidRequestException: Service metadata related operations are only allowed for the root scope. The current operation is for the scope '/SharePoint/default'. HTTP headers received from the server - ActivityId: 26dafcdf-ce45-4f60-a549-a8d60aaf60b5. NodeId: SPSRV. Scope: /SharePoint/default. Client ActivityId : fcdd689c-50cd-40a5-1b3f-2a75316ad0bb. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.     at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetResponseAsyncResult ...

Monitoring                        nasq      Medium              Entering monitored scope (Request (GET:xxx/_layouts/15/addanapp.aspx?task=GetMyApps&sort=1&query=timeoff&myappscatalog=0&ci=1&vd=1)). Parent No          

Logging Correlation Data            xmnv    Medium              Name=Request (GET:xxx/_layouts/15/addanapp.aspx?task=GetMyApps&sort=1&query=timeoff&myappscatalog=0&ci=1&vd=1)        bddd689c-902f-40a5-1b3f-2bd8def0c8e6

App Marketplace                            ajqc0     Unexpected       Caught an exception while calling SPCapabilityChecker.GetMissingCapabilities(): Microsoft.Workflow.Client.InvalidRequestException: Service metadata related operations are only allowed for the root scope. The current operation is for the scope '/SharePoint/default'. HTTP headers received from the server - ActivityId: 26dafcdf-ce45-4f60-a549-a8d60aaf60b5. NodeId: SPSRV. Scope: /SharePoint/default. Client ActivityId : fcdd689c-50cd-40a5-1b3f-2a75316ad0bb. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.     at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, ...              fcdd689c-50cd-40a5-1b3f-2a75316ad0bb

App Marketplace                            ajqc0     Unexpected       ...T content)     --- End of inner exception stack trace ---     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.WorkflowServiceManager.GetVersion()     at Microsoft.SharePoint.WorkflowServices.WorkflowCapabilityChecker.GetMissingServiceDependencyNames(SPWeb hostWeb)     at Microsoft.SharePoint.SPCapabilityChecker.GetMissingCapabilities(SPAppPrerequisitesCheckingContext context, Boolean shouldLog)     at Microsoft.SharePoint.Administration.SPAppPrerequisite.RunCapabilityCheckers(SPAppPrerequisitesCheckingContext prerequisitesCheckingContext, List`1& missingCapabilities)        fcdd689c-50cd-40a5-1b3f-2a75316ad0bb

App Marketplace                            ajcnh    High      Caught a SPException while checking prerequisites for App 'TimeOFF Pro' with asset id 'WA104079126': Microsoft.SharePoint.SPException: An error has been encountered while checking prerequisites for an app. ---> Microsoft.Workflow.Client.InvalidRequestException: Service metadata related operations are only allowed for the root scope. The current operation is for the scope '/SharePoint/default'. HTTP headers received from the server - ActivityId: 26dafcdf-ce45-4f60-a549-a8d60aaf60b5. NodeId: SPSRV. Scope: /SharePoint/default. Client ActivityId : fcdd689c-50cd-40a5-1b3f-2a75316ad0bb. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.     at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetRe...              fcdd689c-50cd-40a5-1b3f-2a75316ad0bb

App Marketplace                            ajcnh    High      ...sponseAsyncResult`1.End(IAsyncResult result)     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)     --- End of inner exception stack trace ---     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.WorkflowServiceManager.GetVersion()     at Microsoft.SharePoint.WorkflowServices.WorkflowCapabilityChecker.GetMissingServiceDependencyNames(SPWeb hostWeb)     at Microsoft.SharePoint.SPCapabilityChecker.GetMissingCapabilities(SPAppPrerequisitesCheckingContext context, Boolean shouldLog)     at Microsoft.SharePoint.Administration.SPAppPrerequisite.RunCapabilityCheckers(SPAppPrerequisitesCheckingContext prerequisitesCheckingContext, List`1& missingCapabilities)     --- End of in...      fcdd689c-50cd-40a5-1b3f-2a75316ad0bb

App Marketplace                            ajcnh    High      ...ner exception stack trace ---     at Microsoft.SharePoint.Administration.SPAppPrerequisite.RunCapabilityCheckers(SPAppPrerequisitesCheckingContext prerequisitesCheckingContext, List`1& missingCapabilities)     at Microsoft.SharePoint.Administration.SPAppPrerequisite.CheckMissingCapabilities(SPAppPrerequisitesCheckingContext prerequisitesCheckingContext)     at Microsoft.SharePoint.Administration.SPAppPrerequisiteCollection.CheckMissingCapabilities(SPAppPrerequisitesCheckingContext prerequisitesCheckingContext)     at Microsoft.SharePoint.Marketplace.SPAppPrerequisitesChecker.Check(SPAppMetadata appMetadata, List`1& missingCapabilities, Boolean shouldLog)             fcdd689c-50cd-40a5-1b3f-2a75316ad0bb

 

So far we have tried to

  • modify manifest file to add/remove requirements for workflows.
  • modify manifest file to add/remove permissions for app.
  • verify/set permissions for accounts that are used by workflow services, and SharePoint (local adm, SQL, SharePoint farm and site collections)
  • we tried to add an app from various accounts

Any help will be appreciated.

 


Viewing all articles
Browse latest Browse all 8089

Trending Articles