SAP Knowledge Base Article - Public

2942798 - Error when downloading the form data xml - SAP S/4HANA Cloud

Symptom

You want to view the underlying xml data of a form that is displayed and the system returns the following error instead of generating the xml file:

Error.png

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

Environment

SAP S/4HANA Cloud - all versions

Reproducing the Issue

Follow the steps provided in the KBA 2825919 - How to get the form data XML for a business document

Cause

The output item for which the xml download is intended is a duplicate:

Duplicate.png

Duplicates cannot not be rendered anymore, because data could be different now, and then it would not be a duplicate.
Anytime the document is displayed, it is retrieved from the database.

Resolution

XML for an original output item with status 'In Preparation' can be downloaded.

See Also

Output Management Set-Up Guide (1LQ)
KBA 2941522 - Output Management in SAP S/4HANA Cloud - Guided Answer
KBA 2825919 - How to get the form data XML for a business document
KBA 2678898 - How to get the form data XML for a billing document 
KBA 2811887 - How to get the form data XML for a sales document
KBA 2837815 - Download XML Form Data - Outgoing Check
SAP Note 2294198 - SAP S/4HANA output control - customized forms

Keywords

Duplicate, APOC_S_OR_ITEM_UI-REFERENCE_ITEM_ID, Form data, xml, pdf, download form data, #&&DOWNLOAD_FORM_DATA_XML&&#, content form, billing documents, output, form template, BILLING_DOCUMENT, BILLING_FORM, This page contains the following errors: error on line 1 at column 1: Document is empty, error on line 1 at column 1: Encoding error, Below is a rendering of the page up to the first error. , KBA , CA-GTF-OC , SAP S/4HANA output management , SD-BIL-GF-OC , Output Control Billing , Problem

Product

SAP S/4HANA Cloud all versions