SAP Knowledge Base Article - Public

2804044 - Query operation in web service not assigned to work center view

Symptom

You observe the following error message while activating your custom PDI solution:

"Query Operation (e.g. QueryByElements) in web service XYZWS not assigned to work center view" (web service XYZWS refers to the web service name)

Errors.png

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

The error can happen for other web service operations, like action, create, update, etc.

Environment

SAP Cloud Applications Studio

Reproducing the Issue

As prerequisite you have previously:

  1. Created a custom solution.
  2. Created a custom Business Object.
  3. Created a Web Service.
  4. Performed solution activation or solution check which raises the error.
  5. Activating the web service directly does not raise the error.

 

Cause

This will occur when a query operation is not assigned to a Work Centre View in the related WSAuth file in the solution. Direct activation of the WS will complete without issue. The error will occur on solution activation or when running a check operation on the solution.

Resolution

Check the WSAuth file associated with the web service and ensure the operation mentioned in the error is checked to be included in the Work Centre view.

assign.png

Keywords

Activation, Failing, Query, not, assigned, to, Work, Centre, View, Query, Operation (e.g. QueryByElements), in, web, service, XYZWS, not, assigned, to, work, center, view , KBA , AP-RC-BDS-WS , ByDesign Studio Web Services , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions