Hi all,
I am using the AI Doc center version 2.9. I am trying to extract invoices with single and multiple line items. There is a field called service code, which needs to be a list of string. In the extraction details, I have given an options rule, which returns a list of string values, based on the type of invoice.
The prompt for this field is: " This should be selected from the values in the options. This value should be null if it is a dental receipt. Please ensure you return a text value. When it is a single value, please ensure you return a single text value."
The extraction is working fine when there are multiple line items in the receipt. If it is a single line item, the value is extracted as {"[value:Chiro-Init", "spanId:99492f14]"}. I need the value to be "Chiro-Init".
Due to this, the extraction summary page is displaying the error: "A rich text item or rich text list item in a rich text display component [label=""] has an invalid value for "text". Text can only be of type date, date and time, decimal, rich text icon, integer, rich text item, text, time, or user. Received Dictionary."
Since the summary page is not displayed, I cannot even reconcile to select the right value for this field.
Please help me if you have a solution for this.
Thanks & Regards
Anu
Discussion posts and replies are publicly visible
Did you consider to use tostring() to display the text?
Or check the actual data type of the returned value and react on it.
Hi Stefan, I checked if the extracted value is dictionary. If yes, then extracted only the value and not the span id. Now the extraction summary is displaying fine. But when I reconcile the field's value, it is not accepting text. It expects a dictionary instead. Any idea how I can resolve this?
Please check the above screenshot. It is for the field "Service Code".
Sorry, I do not have any good idea out of my head.