---
title: "DF0027: Invalid Dump Configuration"
description: "Function \"{name}\" with type \"{type}\" cannot have dump configuration. Only \"static\" and \"query\" types support dumps."
canonical_url: "https://devfra.me/errors/df0027"
---
# DF0027: Invalid Dump Configuration

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

## 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, so 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.


## Sitemap

See the full [sitemap](https://devfra.me/sitemap.md) for all pages.
