top of page

ChatGPT 'file is no longer available' error: why files expire after 13 hours and how to fix it

Nov 15, 2025
6 min read

Updated: Nov 4

ChatGPT file is no longer available error explained with file retention rules - Data Studios original cover

Updated: November 4, 2026


When ChatGPT says a file is no longer available or has expired, the working copy that ChatGPT used to read or analyze the file has been removed, and the fix is to upload the file again in the same chat. OpenAI states in its data analysis documentation that the code execution environment created for a conversation is destroyed within 13 hours of the conversation becoming inactive, which is why a spreadsheet or PDF that worked yesterday can stop working when you return to the chat today.


The chat history and the file card usually stay visible after that point, so the upload looks intact even though the environment that held the file is gone. The table below gathers the file rules that OpenAI publishes in its help center, followed by a table of the common causes with a way to check each one and the fix that applies.


........


Rule

What OpenAI publishes

Code execution environment

Destroyed within 13 hours of the chat becoming inactive

Files uploaded in a chat

Kept up to the retention period of that chat

Chats

Saved until you delete them

Deleted chats, accounts or custom GPTs

Chats and files deleted within 30 days, with legal and security exceptions

Knowledge files of a custom GPT

Kept until the custom GPT is deleted

Data analysis files and files shared with a GPT

Retention varies by plan; per-plan durations are not published

ChatGPT Enterprise

The workspace controls how long data is retained


........


··········


WHY CHATGPT SAYS A FILE IS NO LONGER AVAILABLE.


ChatGPT handles uploaded files in two layers. The first is the conversation record, which stores your messages, the file card and, according to OpenAI's File Uploads FAQ, the uploaded file itself for as long as the chat is retained. The second is the code execution environment that ChatGPT creates the first time it analyzes data in a conversation, where it writes and runs Python against your spreadsheet, CSV, PDF or JSON file and reviews the output before answering.


OpenAI's data analysis help page describes that environment as an instance accessible only from its own conversation and isolated from the rest of the platform, and it says the instance is destroyed within 13 hours of the conversation becoming inactive. Any file that ChatGPT had loaded into the environment, along with intermediate files it generated there, disappears with it. When you send a new message that needs those files, ChatGPT reports that they have expired or are no longer available and asks for a new upload.


OpenAI's help pages do not document the exact wording of the error message, and they do not say whether a file kept in the conversation record can be reloaded automatically after the environment is destroyed. In practice the message means the copy ChatGPT needs for the current step is missing, and a fresh upload restores it.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣

CHATGPT FILE RETENTION RULES BY FILE TYPE.


The File Uploads FAQ separates files by how they entered ChatGPT. Files uploaded in a normal conversation are kept for up to the retention period of the chat, and chats are saved until you delete them. When you delete a chat, an account or a custom GPT, OpenAI says the associated chats and files are deleted from its systems within 30 days, unless they were previously de-identified and disassociated from the account or must be kept for security or legal reasons.


Files uploaded as knowledge to a custom GPT follow the GPT rather than any single chat: they are retained until the custom GPT is deleted, with a limit of 20 files per GPT for the lifetime of that GPT. Files processed through data analysis, and files you share while chatting with a custom GPT without adding them as knowledge, are retained for a duration that OpenAI says varies by plan. OpenAI does not list those durations per plan on its help pages, so any specific number of hours or days attributed to Free, Plus, Pro or Business accounts does not come from OpenAI.


For organizations, OpenAI's enterprise privacy page states that ChatGPT Enterprise customers control how long their data is retained. A workspace administrator can therefore set rules that remove files earlier than a personal account would, and the page gives no deletion timing that applies to every workspace. Our guide to ChatGPT data retention policies and user controls covers how chat history, temporary chats and deletion work beyond files.


··········


CAUSES OF THE CHATGPT EXPIRED FILE ERROR AND HOW TO FIX EACH ONE.


Most cases trace back to a small set of situations. The table pairs each with a way to confirm it and the fix that works.


........


Cause

How to check

Fix

Chat inactive for more than 13 hours

Your last message in the chat is from the previous day

Upload the file again in the same chat

Analysis files generated in the old environment

ChatGPT cannot open a chart or CSV it created earlier

Re-upload the source file and ask ChatGPT to rebuild the output

Chat, account or custom GPT deleted

The chat or GPT no longer appears in your sidebar

Upload the file again in a new chat or GPT

Workspace retention rules

Your ChatGPT Enterprise admin has set a retention period

Ask the admin for the policy and keep a local copy

Personal storage cap reached

ChatGPT shows an error that you hit your file usage cap

Delete files from recent chats or from GPTs you built

Free plan daily limit reached

The upload fails after your third file of the day

Wait for the daily limit to reset or upgrade


........


The re-upload fix works because ChatGPT creates a new code execution environment for the conversation when it analyzes data again. Uploading in the same chat keeps your earlier messages and instructions in context, which saves you from re-explaining the task, while the new upload gives the environment a fresh copy of the file.


··········


[[ADPLUS_300x250_1]]

CHATGPT FILE UPLOAD LIMITS THAT CAN LOOK LIKE AN EXPIRED FILE.


Some failures that users read as expiration are upload limits. OpenAI's File Uploads FAQ sets a hard limit of 512 MB per file, caps text and document files at 2 million tokens per file, limits spreadsheets and CSV files to about 50 MB depending on row size, and limits images to 20 MB each. The data analysis help page adds that up to 10 files can be uploaded to a single conversation.


Storage caps apply across your account. The FAQ says each end user is capped at 10 GB and each organization at 100 GB, and that ChatGPT shows an error when a cap is reached; deleting files from recent chats or from GPTs you built frees space. Free users can upload up to 3 files per day. For the full list of formats and plan differences, see our guide to ChatGPT file upload limits, sizes and plan caps.


........


Limit

Value published by OpenAI

File size

512 MB per file

Text and documents

2M tokens per file

Spreadsheets and CSV

About 50 MB, depending on row size

Images

20 MB per image

Files per conversation (data analysis)

Up to 10

Knowledge files per custom GPT

Up to 20 for the lifetime of the GPT

Storage per user

10 GB

Storage per organization

100 GB

Free plan uploads

Up to 3 files per day


........


··········


HOW TO AVOID LOSING FILES IN LONG CHATGPT PROJECTS.


The 13-hour rule means a multi-day analysis in a single chat will need at least one re-upload after every long pause. Keeping the original files on your own device or cloud drive is the simplest protection, because OpenAI describes no way to retrieve files from an environment once it has been destroyed. Charts, cleaned spreadsheets and other outputs that ChatGPT generates should be downloaded while the session is active.


ChatGPT projects help with recurring work. OpenAI's ChatGPT documentation describes projects as carrying project files and context across related chats, while a file attached directly to a chat applies only to that request. Placing reference documents in a project keeps them available to new chats in that project, although data analysis in each chat still runs in its own environment, so a file that has to be processed with code may need to be loaded again in a later session.


Custom GPTs suit files you reuse with the same instructions, since knowledge files stay until the GPT is deleted, within the 20-file limit. If your usage is heavy, check also our guide to ChatGPT usage limits by plan, because hitting a message or tool cap can interrupt a session for reasons unrelated to files.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁤

CHATGPT EXPIRED FILES: WHAT OPENAI DOCUMENTS AND WHAT IT DOES NOT.


OpenAI documents three timings that explain the error: a code execution environment destroyed within 13 hours of inactivity, uploaded files kept for the retention period of their chat, and deletion within 30 days after a chat, account or custom GPT is removed. It also documents the size, token and storage limits that can block an upload before any expiration takes place.


OpenAI does not publish per-plan retention durations for data analysis files, the exact text of the expiration message, or a way to restore a destroyed environment. Claims that Plus files last a set number of hours, or that a given plan keeps files longer, are not backed by OpenAI's help pages as of November 4, 2026. For any file you depend on, the reliable approach is to keep the original, download outputs during the session, and upload again in the same chat when ChatGPT reports that the file is no longer available.


··········


FOLLOW US FOR MORE.


·····


DATA STUDIOS


·····


datastudios.org


bottom of page