---
outline: deep
---

# DF0027: Invalid Dump Configuration

## Message

> Function "`{name}`" with type "`{type}`" cannot have dump configuration. Only "static" and "query" types support dumps.

## Cause

A `dump` field was attached to an `'action'` or `'event'` function. These types perform side effects rather than returning queryable data — there is nothing meaningful to pre-compute.

## Fix

Drop the `dump` field, or change the function `type` to `'static'` / `'query'` if pre-computation is appropriate.

## Source

- [`packages/devframe/src/rpc/validation.ts`](https://github.com/devframes/devframe/blob/main/packages/devframe/src/rpc/validation.ts) — definition validation throws `DF0027` when a `dump` field is attached to an `'action'` or `'event'` function.
