SAP Knowledge Base Article - Public

3413070 - Error " Rendering of  document via service ADS failed" Raised While Previewing Document

Symptom

Upon Opening the Purchase contract output details, the status is displayed as " Error", and click on the display document the below error occurs:

"Rendering of document via service ADS failed".

Environment

SAP S/4HANA Cloud

 

Reproducing the Issue

  1. Go to Manage Purchase Contract.
  2. Go to Output control tab.
  3. The status is displayed "Error".
  4. click on display document.
  5. Error: "Rendering of document via service ADS failed".

Cause

There are multiple possible causes for the issue:

  1. The template contains an extension field which is defined with the data type that only supports text, however a binary object (for example, an image) was pasted in the field, causing the rendering error.
  2. The document contains an invalid character in one of the text fields. 
  3. The form template is using a component of type "checkbox" to display a field of type "indicator". When the XML with the document data is passed to the form, the values are sent as "TRUE" or "FALSE". These values cannot be interpreted by the checkbox component, as it expects an integer value.
  4. The error might be caused due to customizations of the form which make it invalid.

Resolution

The respective resolution for each cause pointed above is the following:

  1. Check the document (and if possible, the XML file generated by the document) for any binary objects being passed to the form template and ensure that it is not bound to a field of type "text".
  2. Check the object in the system (and if possible, the XML file generated) for invalid characters. Generally, these will be found in Notes, Internal Notes and Internal Comments of the object.
  3. Check the form template for components which are being bound to a field of type "indicator" and ensure that a correct component in the form is being used to properly handle the Boolean values sent through the XML.
  4. Check for customization made in the form template which could be causing the error. There is also an option to revert to a previous consistent version of the template to more easily identify the issues.

Keywords

Purchase contract, ADS rendering, Output, status, Error, Preview document, Output Management, S4_PC, S4_1C, F1600A  , KBA , MM-FIO-PUR-SQ-SCH , Fiori UI for Manage Scheduling Agreements , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions