Support > Forums > OpenBots Studio > Error saving document results
Using OB Studio with Save Document Results command and getting this error:
Error Occurred at Line 39: Save Document Results [Store Document Status in 'uploadStatus'] - [Source: 'C:\Users\x\Documents\OpenBots\OB Scripts\RenameInvoices\Main.obscript', Type: 'InvalidOperationException', Message: 'Exception when calling DocumentProcessingEngineServiceApi.SaveDocumentResults: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'OpenBots.Server.SDK.Model.ExtractedContentField' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List
I have the JSON being saved into a String which is what the command requires. Almost seems like its an issue with the API itself not deserializing the outputted JSON.
Any help is appreciated. Thanks!
This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...
Hi Nataly,
I'm not sure how your ticket system works, but I sent this information back on 4/5 in a direct reply to an email from openbots@openbots.freshdesk.com.
Studio version is: 1.8.6.0
I'm not sure how to upload an attachment here, but it was sent in the original email. The document type is an invoice though.
Thanks!
Hi Jared Holliday,
Thanks for submitting your support request.
​Please share the following information:
Thanks!
You are not authorized to reply, please click here to login and add your reply to this topic.