Support > Forums > OpenBots Studio > Error saving document results

Error saving document results

Jared Holliday

  • Reporter
  • Calender Icon March 29,2023 at 7:43 PM

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 that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path 'ExtractedContent[0].document.InvoiceItems', line 23, position 25.']

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...

Jared Holliday

  • Participant
  • Calender Icon April 12,2023 at 5:05 PM

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!

Nataly Alvarado...

  • Participant
  • Calender Icon April 10,2023 at 2:58 PM

Hi Jared Holliday,

Thanks for submitting your support request.

​Please share the following information:

  • Studio version
  • Document type (a document sample would be preferable)

Thanks!

You are not authorized to reply, please click here to login and add your reply to this topic.