Veröffentlicht Mon, 07 Mar 2022 12:03:18 GMT von Óscar Beiro

Hi,
First time here. I hope someone can help us :).

We are implementing an integration with an ITSM tool called GLPI. Currently the document is correctly uploaded to a Tray but without indexes it is not very useful.

From a Ubuntu server 20.04 we are sending this test requests to upload the file and its indexes:
 

curl -X POST 'https://XXXXX.docuware.cloud/docuware/platform/FileCabinets/56eaed2c-84bf-4e37-9ebc-7ede78829cde/Documents'

-H 'Content-Type: multipart/form-data'

-F 'document="{Fields:[{FieldName:COMPANY,Item:CURL upload,ItemElementName:String}]};type=application/json"'

-F 'file[]=@"/home/user/Documents/Test.pdf"'

This is the error

<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="/DocuWare/Platform/Content/errors.xslt"?> <s:Error Uri="http://XXXXX.docuware.cloud/docuware/platform/FileCabinets/56eaed2c-84bf-4e37-9ebc-7ede78829cde/Documents" Method="POST" StatusCode="500" Status="Internal Server Error" xmlns:s="http://dev.docuware.com/schema/public/services">     <s:Message>Value cannot be null. Parameter name: stringToUnescape</s:Message>     <s:Exception>ArgumentNullException: Value cannot be null. Parameter name: stringToUnescape</s:Exception> </s:Error>

Since it is an error 500 only Docuware knows what is happening. Any idea of what can be happening a how to avoid it? Thanks

Veröffentlicht Mon, 07 Mar 2022 12:12:03 GMT von Simon H. Hellmann Toshiba Tec Germany Imaging Systems GmbH IT-Consultant Document Management Solutions
Hi Óscar,&nbsp;<br> <br> I usually only work with the .NET API, so I can not give specific advice.&nbsp;<br> However, here are 2 things I noticed:<br> <br> 1. Your Item is&nbsp;<code>Item:CURL upload</code> , which looks like it is not interpreted as a string. I think it should be something like <code>Item:"CURL upload"</code> or&nbsp;<code>Item:'CURL upload'</code>, right?<br> 2. You are not providing the IndexField Property IsNull. I don't know if that is mandatory, I normally just provide it in any case: <code>IsNull:false</code><br> <br> <br> Hope this helps.&nbsp;<br> <br> Greetings from Germany,<br> Simon H. Hellmann<br> DocuWare System Consultant<br> &nbsp;
Veröffentlicht Mon, 07 Mar 2022 12:42:24 GMT von Óscar Beiro
Thanks Simon, that was fast! :)<br> <br> Postman didn't feel like they notice, even with escaped quotes :(<br> We still have the same error.&nbsp;<br> I have added a couple of images to avoid the sanitizing, but error continues the same.<br> <br> &nbsp; <grammarly-desktop-integration data-grammarly-shadow-root="true"></grammarly-desktop-integration>

Sie müssen angemeldet sein um Beiträge in den Foren zu erstellen.