Workflow Exit

How to save Pipedream data stores and File Store files

Updated October 29, 2026

Pipedream's export saves the structure of your workflows: triggers, steps, code and props. It does not include data store records or File Store files. Pipedream deletes all Workflows data by April 30, 2027, so this data has to be saved separately.

Workflows also stop running on March 31, 2027, so any export that runs as a workflow step has to happen before then. See the shutdown timeline.

Step 1: Find what uses stored data

Start with the free migration report. It flags every workflow whose code uses a data store or the File Store, and lists each data store with the workflows that use it.

The Pipedream Data Stores dashboard at pipedream.com/data-stores shows the same thing from the other side. Click the arrow next to a data store's name to list the workflows linked to it.

If you exported your project, the export archive itself, project_export-<project_id>.zip, also sits in the File Store. Download it along with your other files. See how to export Pipedream workflows.

Step 2: Export data store records

A Pipedream data store is a key-value store. Values can be any JSON-serializable data: strings, numbers, objects, arrays and dates. One data store can be shared by several workflows.

Use the Workflow Exit exporter (free, read-only)

The exporter is a Node.js code step that reads up to 8 data stores and saves all their records in one JSON file in your browser. It never changes or deletes a record, and the file doesn't pass through our servers.

  1. In Pipedream, create a workflow with the HTTP / Webhook Requests trigger. Set its HTTP Response to Return a custom response from your workflow.
  2. Add a Node.js code step and replace its code with the exporter.
  3. Pick your stores in Data store 1 to Data store 8. Type any random text of 12 or more characters in Access key, then deploy.
  4. Open the trigger URL in your browser with ?key=<your access key> at the end. The page reads every store and saves pipedream-data-stores.json.
  5. Add the file to your report with Add data store file, or drop it together with your export. Then delete the exporter workflow.

Have more than 8 stores? Pick the others, deploy again and export a second file. The report joins the files.

Large stores are read in parts of about 2 MB, which the page joins into one file, so the size of a single HTTP response doesn't limit the export. If a part times out, raise the workflow's timeout in its settings and reload the page.

The file contains:

  • Records: every key and value, in key order.
  • Store id: the Pipedream id (ds_…) when the step can read it. The report uses it to match each store to the workflows that use it.
  • Expiry times: when the data store reports them.

Alternative: send the records to your own endpoint

To push the records to a system you control instead, read them with an async iterator, as Pipedream's documentation shows. Its own example deletes each key after sending it by default. The version below sends the records in chunks of 100 and deletes nothing:

import { axios } from "@pipedream/platform";

export default defineComponent({
  props: {
    dataStore: { type: "data_store" },
    url: { type: "string", label: "Destination URL" },
  },
  async run({ $ }) {
    let chunk = [];
    let sent = 0;
    const flush = async () => {
      await axios($, { method: "POST", url: this.url, data: chunk });
      sent += chunk.length;
      chunk = [];
    };
    for await (const [key, value] of this.dataStore) {
      chunk.push({ key, value });
      if (chunk.length === 100) await flush();
    }
    if (chunk.length) await flush();
    return { sent };
  },
});

Pipedream suggests 512 MB of memory and a 60-second timeout as a starting point for exports. If each value is large, lower the chunk size.

Either way, two things to check:

  • Dates become strings. JSON has no date type, so dates arrive as ISO strings.
  • Records with a TTL can expire before you export them. Export early.

Step 3: Download File Store files

File Stores are available only on Pipedream's Advanced plan and above. If your workspace never had them, you have no files to save.

To download by hand, open the project, select File Store in the left navigation, and download each file.

For many files, use a Node.js step. $.files.dir() lists the files in the project's File Store (the root folder by default). $.files.open(path) opens a file, and toUrl() returns a URL you can download it from. You can send those URLs to an n8n workflow that downloads each file with an HTTP Request node and uploads it to storage. Do the download right away rather than storing the URLs for later.

Step 4: Load the data into n8n

Preloaded records (automatic)

When you add the exporter file to the report, Workflow Exit matches each store to the workflows that use it: by store id, by the keys the code uses, or by your choice in the list. Every converted workflow then comes with its records preloaded:

  • Static data. The records become the workflow's static data, where the converted code reads and writes them. import-to-n8n.mjs and n8n import:workflow keep it.
  • Embedded copy. The editor's Import from File drops static data. For stores up to 200 KB, the records are also embedded in the Code node, which fills the static data on the first production run. You can delete those two lines afterwards.
  • Data Tables. The ZIP has each store in data-stores/. node import-to-n8n.mjs --data-tables creates an n8n Data Table named pd_<store name> with key, value (JSON text) and expires_at columns.

We tested all three import routes, the API, the CLI and the editor, in n8n 2.45.6: the converted workflows read the preloaded records.

Where the data can live

Option Good for Watch out for
Workflow static data Small state used by one workflow: cursors, last-seen IDs, counters Per workflow only; not saved in manual test runs
n8n Data Tables Records shared by workflows in a project; key-value data you want to see and edit 200 MiB default total per instance; no direct Code node access
External database or S3 Large data, frequent writes, data other systems use, and files You run or pay for the service

Workflow static data

This is what converted workflows use by default. When Workflow Exit converts a code step, the compatibility layer replaces each data store with workflow static data. It is stored under the Pipedream store id, or under the step and prop names when the export doesn't include the id, so get, set, delete, has and keys keep working without code changes.

The n8n documentation sets some limits:

  • Static data "should be small".
  • It is not saved when you test a workflow. The workflow must be published and called by a trigger or webhook.
  • It is available only in the JavaScript Code node, not the Python one.
  • It "may behave unreliably under high-frequency workflow executions".

Global static data belongs to one workflow. If several Pipedream workflows shared one data store, each gets its own copy of the records in n8n, and later writes in one workflow aren't seen by the others. Use a Data Table for data they must share.

n8n Data Tables

According to the n8n documentation, Data Tables store structured data inside n8n, so you do not need an external database.

  • Creating a table. Use the Data tables tab in your project (from scratch, or by importing a CSV), the Data Table node, or the n8n API.
  • Column types. Boolean, Date, Number and String.
  • Row operations. The Data Table node can Insert, Get, Update, Upsert and Delete rows, and check "If Row Exists" or "If Row Does Not Exist".
  • Sharing. Tables created in a project are available to all members of that project.
  • Size. By default, all data tables in an instance share a 200 MiB limit. n8n warns at 80%. Going over the limit blocks manual additions and causes workflow execution errors. On self-hosted n8n, change the limit with N8N_DATA_TABLES_MAX_SIZE_BYTES.
  • Code node access. A Code node cannot read or write a Data Table directly.

The import script's tables mirror a key-value store: a key column and a value column, both String, with objects stored as JSON text. If every value is a flat object, you can give each field its own column instead.

Without the import script, either convert your records to CSV and import it, or build a small import workflow:

  1. A Webhook node (POST). Publish the workflow and use its production URL as the destination in Step 2.
  2. A Split Out node on body, so each record becomes its own item.
  3. A Data Table node with Upsert, matching on key.

The Webhook node accepts payloads up to 16 MB, so chunks of 100 records are usually fine. Delete the import workflow when you are done.

To make converted workflows use a Data Table, replace the static data calls with Data Table nodes: a Get before the Code node, and an Upsert after it.

External database or S3

Move the data out of n8n when it is large, written many times a second, or used by other systems. n8n has nodes for common databases, such as Postgres, MySQL and Redis, and an AWS S3 node for object storage.

n8n handles files as binary data while a workflow runs. For long-term storage, keep your File Store files in S3, Google Drive or similar, and fetch them with the matching node or an HTTP Request node when a workflow needs them. On self-hosted n8n, the Read/Write Files from Disk node can also read and write files on the n8n machine.

Checklist

  • Run the free report and note the workflows that use data stores or the File Store.
  • Download the project export ZIP from the File Store.
  • Export every data store with the exporter step before March 31, 2027, and add the file to the report.
  • Download every File Store file.
  • Convert, then import with import-to-n8n.mjs or the n8n CLI to keep the preloaded records.
  • Test the converted workflows, then switch over.

The full migration, from export to cutover, is covered in the Pipedream to n8n guide.

Frequently asked questions

Does the Pipedream workflow export include data stores?+

No. Pipedream's export contains the structure and configuration of your workflows. Event history, data stores and File Store files are not included, so you have to save them separately.

When will Pipedream delete my data stores and files?+

All Workflows data is permanently deleted by April 30, 2027. Workflows stop running on March 31, 2027, so any export that runs as a workflow step must happen before then.

Does Workflow Exit copy my data store records to n8n?+

Yes. Export the records with the free read-only exporter step and add the file to your report. The converted workflows come with the records preloaded as n8n workflow static data, so the code finds the same keys and values. The ZIP also includes each store's records, and its import script can create an n8n Data Table from each one.

Do my data store records go through your server?+

No. The exporter step sends the file from your Pipedream workflow to your browser. The report reads it in the browser tab and writes the records into the workflows you download. Conversion sends workflow definitions to our server, never the records.

Can an n8n Code node read a Data Table?+

Not directly. The n8n documentation says direct programmatic access to data tables from a Code node isn't supported. Put a Data Table node before or after the Code node instead.

How much data can n8n Data Tables hold?+

By default, all data tables in an n8n instance share a total limit of 200 MiB. On self-hosted n8n you can change it with the N8N_DATA_TABLES_MAX_SIZE_BYTES environment variable.

What happens to records that had an expiry time (TTL)?+

Pipedream doesn't document a way to read a record's expiry time. The exporter includes it when the data store reports it, and the converted workflows then keep it. Otherwise the records arrive without an expiry: if your logic depends on one, save an expires_at value with each record in n8n and check it in the workflow.