Skip to main content
Adyant001
Silver ⭐️⭐️
August 13, 2024
Question

LookupRecord LookupRecord throwing Could not determine schema to use for enriched FlowFiles :Not an Avro data file.

I am trying use LookupRecord LookupRecord from Oracle table and i am using Avro reader/writer in LookupRecord . 

BUt i am receiving below error

Any suggestion @mburgess 

2024-08-13 18:09:09,214 ERROR [Timer-Driven Process Thread-4] o.a.n.processors.standard.LookupRecord LookupRecord[id=3a641d1a-1b3c-1a47-2c18-b3541562e3ea] Could not determine schema to use for enriched FlowFiles
org.apache.avro.InvalidAvroMagicException: Not an Avro data file.

3 replies

SAMSAL
Platinum ⭐️⭐️⭐️
August 13, 2024

Hi ,

Are you using provided avro schema ? If so, its basically saying that your avro schema is invalid! how are you providing your schema ? Can you please post some screenshot of your configuration?

Translate
mburgess
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
August 13, 2024

Is the incoming FlowFile an Avro file? Or is it JSON or something else?

Translate
Adyant001
Adyant001Author
Silver ⭐️⭐️
August 14, 2024

@mburgess -- I am reading from Oracle table, not sure about the incoming flowfile

Translate