Unable to fetch the data from doc using AI skills

Certified Senior Developer

Hello Appian Community,

I am currently using AI Skills in Appian to extract data from a document. The extracted data is being saved as text at the process model level. However, I need to convert this text into JSON format for further processing.

I attempted to use the a!fromJson() function to convert the text into JSON, but I am encountering an error during the conversion.

Here is what I have tried:

  • The extracted data is stored in a process variable of type Text (e.g., pv!extractedData).
  • I tried using a script task to convert the text to JSON using:
    appian
    Copy code
    a!fromJson(pv!extractedData)
  • However, this results in an error.

Error Details:

My Questions:

  1. How can I ensure the text data is valid JSON and successfully convert it?
  2. Are there specific considerations or configurations required when working with AI Skills and JSON data in process models?
  3. What are the best practices for handling such scenarios?

Any guidance or examples would be greatly appreciated!

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data