AI Doc extraction returning a dictionary instead of text. Error displayed on the extraction summary page

Certified Senior Developer

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