GenerateRecord 2025.10.9.21

Bundle

org.apache.nifi | nifi-standard-nar

Description

This processor creates FlowFiles with records having random value for the specified fields. GenerateRecord is useful for testing, configuration, and simulation. It uses either user-defined properties to define a record schema or a provided schema and generates the specified number of records using random data for the fields in the schema.

Tags

fake, generate, random, test

Input Requirement

FORBIDDEN

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
null-percentageThe percent probability (0-100%) that a generated value for any nullable field will be null. Set this property to zero to have no null values, or 100 to have all null values.
nullable-fieldsWhether the generated fields will be nullable. Note that this property is ignored if Schema Text is set. Also it only affects the schema of the generated data, not whether any values will be null. If this property is true, see ‘Null Value Percentage’ to set the probability that any generated field will be null.
number-of-recordsSpecifies how many records will be generated for each outgoing FlowFile.
record-writerSpecifies the Controller Service to use for writing out the records
schema-textThe text of an Avro-formatted Schema used to generate record data. If this property is set, any user-defined properties are ignored.

Relationships

NameDescription
successFlowFiles that are successfully created will be routed to this relationship

Writes attributes

NameDescription
mime.typeSets the mime.type attribute to the MIME Type specified by the Record Writer
record.countThe number of records in the FlowFile