ExtractRecordSchema 2025.10.9.21

Bundle

org.apache.nifi | nifi-standard-nar

Description

Extracts the record schema from the FlowFile using the supplied Record Reader and writes it to the avro.schema attribute.

Tags

avro, csv, freeform, generic, json, record, schema, text, xml

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
cache-sizeSpecifies the number of schemas to cache. This value should reflect the expected number of different schemas that may be in the incoming FlowFiles. This ensures more efficient retrieval of the schemas and thus the processor performance.
record-readerSpecifies the Controller Service to use for reading incoming data

Relationships

NameDescription
failureIf a FlowFile’s record schema cannot be extracted from the configured input format, the FlowFile will be routed to this relationship
successFlowFiles whose record schemas are successfully extracted will be routed to this relationship

Writes attributes

NameDescription
record.error.messageThis attribute provides on failure the error message encountered by the Reader.
avro.schemaThis attribute provides the schema extracted from the input FlowFile using the provided RecordReader.