Views:
Question:
What illegal characters can't be used via REST API when uploading documents, including an XML data file?

Answer: 

When uploading files into DocuWare using data files, please be mindful of the characters a value contains. The following characters are invalid in an XML file and must be escaped. 

 

< 

&lt; 

> 

&gt; 

& 

&amp; 


If the above characters are utilized, the following error may occur; 
 

<s:Error Uri="http://PetersEngineering.docuware.cloud/docuware/platform/FileCabinets/4604fe18-c73a-4e88-b1f5-3797343eac3c/Documents" Method="POST" StatusCode="500" Status="Internal Server Error" xmlns:s="http://dev.docuware.com/schema/public/services"> 

    <s:Message>There is an error in XML document (4, 19).</s:Message> 

    <s:Exception>InvalidOperationException: There is an error in XML document (4, 19).</s:Exception> 

</s:Error> 

More on this error and how to handle it can be found in 
KBA-36925.

KBA is applicable for both Cloud and On-premise Organizations.