Question
Unable to fetch the data from doc using AI skills
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:
a!fromJson(pv!extractedData) - However, this results in an error.
Error Details:
My Questions:
- How can I ensure the text data is valid JSON and successfully convert it?
- Are there specific considerations or configurations required when working with AI Skills and JSON data in process models?
- What are the best practices for handling such scenarios?
Any guidance or examples would be greatly appreciated!

