{"record":{"id":"edd5009db22a4b43","repo":"appsmithorg/appsmith","slug":"failed-importing-template","errorCode":null,"errorMessage":"Failed importing template","messagePattern":"Failed importing template","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"app/client/src/sagas/TemplatesSagas.ts","lineNumber":250,"sourceCode":"      fetchDatasources(),\n      fetchJSLibraries(applicationId),\n    ],\n    [\n      ReduxActionTypes.FETCH_ACTIONS_SUCCESS,\n      ReduxActionTypes.FETCH_JS_ACTIONS_SUCCESS,\n      ReduxActionTypes.FETCH_DATASOURCES_SUCCESS,\n      ReduxActionTypes.FETCH_JS_LIBRARIES_SUCCESS,\n    ],\n    [\n      ReduxActionErrorTypes.FETCH_ACTIONS_ERROR,\n      ReduxActionErrorTypes.FETCH_JS_ACTIONS_ERROR,\n      ReduxActionErrorTypes.FETCH_DATASOURCES_ERROR,\n      ReduxActionErrorTypes.FETCH_JS_LIBRARIES_FAILED,\n    ],\n  );\n\n  if (!afterActionsFetch) {\n    throw new Error(\"Failed importing template\");\n  }\n\n  const afterPluginFormsFetch: boolean = yield failFastApiCalls(\n    [fetchPluginFormConfigs()],\n    [ReduxActionTypes.FETCH_PLUGIN_FORM_CONFIGS_SUCCESS],\n    [ReduxActionErrorTypes.FETCH_PLUGIN_FORM_CONFIGS_ERROR],\n  );\n\n  if (!afterPluginFormsFetch) {\n    throw new Error(\"Failed importing template\");\n  }\n\n  yield put(fetchAllPageEntityCompletion([executePageLoadActions()]));\n}\n\nfunction* forkTemplateToApplicationSaga(\n  action: ReduxAction<{\n    pageNames?: string[];","sourceCodeStart":232,"sourceCodeEnd":268,"githubUrl":"https://github.com/appsmithorg/appsmith/blob/8cd9021c24cdbea1c3c12c966073708e83db60c2/app/client/src/sagas/TemplatesSagas.ts#L232-L268","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Open DevTools Network, filter to the import-window requests, and find which fetch returned non-2xx.","Install any plugin the template depends on before re-importing.","Re-check that required JS libraries are installed in Libraries settings.","Retry the import on a stable connection; partial state from a failed import may need to be cleaned up first."],"exampleFix":null,"handlingStrategy":"retry","validationCode":"// Pre-flight: confirm required plugins and libraries are present\nif (!hasPlugin(templatePluginId) || !hasLibrary(templateLibName)) {\n  showAlert('Install missing dependencies before importing', 'error');\n  return;\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Install every plugin the template needs before importing.","Import on a stable connection.","Clean up partial imports from failed attempts before retrying."],"tags":["template-import","network","fetch","plugins"],"backgroundTag":null,"analyzedSha":"8cd9021c24cdbea1c3c12c966073708e83db60c2","analyzedAt":"2026-08-12T22:14:19.293Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}