Symptom
You observe either the following error messages 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)
- Read Operation (e.g. Read) in web service XYZWS not assigned to work center view" (web service XYZWS refers to the web service name)
The error can happen for other web service operations, like action, create, update, etc.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP Cloud Applications Studio
SAP Cloud for Customer
SAP Business ByDesign
Reproducing the Issue
As prerequisite you have previously:
- Created a custom solution.
- Created a custom Business Object.
- Created a Web Service.
- Performed solution activation or solution check which raises the error.
- Activating the web service directly does not raise the error.
Cause
This will occur when a query or read operation is not assigned to a Work Center 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
Open the WSAuth file associated with the web service and ensure that the operation mentioned in the error is checked to be included in the Work Center view.
Keywords
Activation, Failing, Query, not, assigned, to, Work, Centre, View, Read, 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
SAP Knowledge Base Article - Public