octobercms/october · error · ApplicationException

The import file was not found using session key [$sessionKey

Error message

The import file was not found using session key [$sessionKey]

What it means

Error "The import file was not found using session key [$sessionKey]" thrown in octobercms/october.

Source

Thrown at modules/backend/models/ImportModel.php:78

     *    [
     *        0 => [db_name1, db_name2],
     *        1 => [db_name3],
     *        ...
     *    ]
     *
     * The key (0, 1) is the column index in the CSV and the value
     * is another array of target database column names.
     */
    public function import($matches, $options = [])
    {
        $sessionKey = $options['sessionKey'] ?? null;

        $importFilePath = $options['importFilePath'] ?? null;

        $path = $importFilePath ?: $this->getImportFilePath($sessionKey);

        if (!$path) {
            throw new ApplicationException("The import file was not found using session key [$sessionKey]");
        }

        $data = $this->processImportData($path, $matches, $options);

        return $this->importData($data, $sessionKey);
    }

    /**
     * importFile imports a file directly from disk
     */
    public function importFile($filePath, $options = [])
    {
        $matches = $options['matches'] ?? null;

        return $this->import($matches, ['importFilePath' => $filePath] + $options);
    }

    /**

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/models/ImportModel.php:78 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21). Data as JSON: /api/errors/e59a05d2739d4188. Report an issue: GitHub.