Symptom
When you try to preview or check the summary of an output document (e.g. case) you get one of the errors below:
A. Error during form selection. Please contact SAP support.
B. Forbidden.
Environment
- SAP Service Cloud v2
- SAP Sales Cloud v2
Reproducing the Issue
- Navigate to Cases work center.
- Open any Case e.g. ID XX.
- On the header, click at three dots "...".
- Click on Summary button.
Cause
There exists two possible causes for this issue:
A. In browser developer tools we can see the error in the response:
Request URL: /sap/c4c/api/v1/output-management-service/template/renderForm
Request Method: POST
Status Code: 400
In the Response of the DevTools, we can see:
{
"error": {
"code": "output_management.50060",
"message": "Error during form selection. Please contact SAP support."
}
}
This means there is a missing configuration in the Output Management rule for cases, in this scenario.
B. In browser developer tools we can see the Forbidden error in the response:
Request URL: /sap/c4c/api/v1/output-management-service/template/renderForm
Request Method: POST
Status Code: 403
In the Response of the DevTools, we can see: {"error": "Forbidden"}
This means that in the affected user business role the business service outputManagementService was not assigned.
Resolution
A. You should maintain a template ID in the form selection rule:
- Go to User Menu and select Settings.
- At All Settings screen look for Output Management section and click at Select Form Template.
- At Select Form Template screen select the Entity and Type to load the rule table.
- Now you should maintain a rule following these steps:
- Click at Add (+).
- In the Template ID column click at empty space in yellow.
- Click at drop down to select the template.
- Apply.
- Click on Active button.
With this the preview of the document should work.
B. You should assign the business service outputManagementService to the business role.
- Go to User Menu and select Settings.
- Go to Business Role screen.
- Open affected role.
- Under business services section click on +.
- Add the outputManagementService.
After that, the user should be able to preview the document.
Keywords
Service Cloud v2, Output, template, select form template, output rule, summary, preview , KBA , CEC-CRM-OUT , Output Management for SAP Sales/Service Cloud , How To