appsmithorg/appsmith · error · Error

Failed importing template

Error message

Failed importing template

What it means

Error thrown by the template-import flow when failFastApiCalls reports failure across the batch of fetchActions / fetchJsActions / fetchDatasources / fetchJSLibraries. The template cannot finish importing until every referenced entity is fetched, so the saga aborts at this gate before moving to plugin form configs.

Solutions

  1. Open DevTools Network, filter to the import-window requests, and find which fetch returned non-2xx.
  2. Install any plugin the template depends on before re-importing.
  3. Re-check that required JS libraries are installed in Libraries settings.
  4. Retry the import on a stable connection; partial state from a failed import may need to be cleaned up first.
Defensive patterns

Strategy: retry

Validate before calling

// Pre-flight: confirm required plugins and libraries are present
if (!hasPlugin(templatePluginId) || !hasLibrary(templateLibName)) {
  showAlert('Install missing dependencies before importing', 'error');
  return;
}

Prevention

When it happens

Trigger: Any of the parallel post-import fetches returned its *_ERROR variant — a datasource fetch 5xx, a JS action fetch failure, a JS library CDN timeout, or a network drop during the batch.

Common situations: Template references a plugin not installed in the workspace; the workspace's installed JS libraries differ from the template; importing on an unstable connection; server under load returning intermittent 5xx.

Related errors


AI-assisted analysis of appsmithorg/appsmith@8cd9021c24 (2026-08-12). Data as JSON: /api/errors/edd5009db22a4b43. Report an issue: GitHub.

Appendix: source

Thrown at app/client/src/sagas/TemplatesSagas.ts:250

      fetchDatasources(),
      fetchJSLibraries(applicationId),
    ],
    [
      ReduxActionTypes.FETCH_ACTIONS_SUCCESS,
      ReduxActionTypes.FETCH_JS_ACTIONS_SUCCESS,
      ReduxActionTypes.FETCH_DATASOURCES_SUCCESS,
      ReduxActionTypes.FETCH_JS_LIBRARIES_SUCCESS,
    ],
    [
      ReduxActionErrorTypes.FETCH_ACTIONS_ERROR,
      ReduxActionErrorTypes.FETCH_JS_ACTIONS_ERROR,
      ReduxActionErrorTypes.FETCH_DATASOURCES_ERROR,
      ReduxActionErrorTypes.FETCH_JS_LIBRARIES_FAILED,
    ],
  );

  if (!afterActionsFetch) {
    throw new Error("Failed importing template");
  }

  const afterPluginFormsFetch: boolean = yield failFastApiCalls(
    [fetchPluginFormConfigs()],
    [ReduxActionTypes.FETCH_PLUGIN_FORM_CONFIGS_SUCCESS],
    [ReduxActionErrorTypes.FETCH_PLUGIN_FORM_CONFIGS_ERROR],
  );

  if (!afterPluginFormsFetch) {
    throw new Error("Failed importing template");
  }

  yield put(fetchAllPageEntityCompletion([executePageLoadActions()]));
}

function* forkTemplateToApplicationSaga(
  action: ReduxAction<{
    pageNames?: string[];

View on GitHub (pinned to 8cd9021c24)