Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

InferAvroSchema - JSON flowfile going straight to failure queue

avatar
New Member

Hey,

I am trying to automatically infer an arvo schema from a JSON object. Unfortunately I think I'm missing something and I'm not sure what. I am trying to infer the schema automatically as the data feed is still under dev, and there will be changes. I have already setup anther flow using the Evaluate JSON path and replace text processor and don't want to constantly update it.

Have set the "Schema Output Destination" to "flowfile-attribute" and the "Input Content Type" to JSON. In the ConvertJSONToArvo processor I have set the record schema to "${inferred.avro.schema}"

41414-l5mu3.pngThanks for your time

James


vvzvu.png
1 ACCEPTED SOLUTION

avatar
New Member

Figured it out, the config above works. Sorry there was an illegal character in my JSON. I wrongly assumed that the JSON object was fine since it worked with the EvaluateJsonPath and not InferArvoSchema

View solution in original post

1 REPLY 1

avatar
New Member

Figured it out, the config above works. Sorry there was an illegal character in my JSON. I wrongly assumed that the JSON object was fine since it worked with the EvaluateJsonPath and not InferArvoSchema