{"record":{"id":"55f200d8a8a1e186","repo":"paperclipai/paperclip","slug":"import-preview-returned-no-data","errorCode":null,"errorMessage":"Import preview returned no data.","messagePattern":"Import preview returned no data\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/company.ts","lineNumber":1780,"sourceCode":"                      ),\n                    );\n                  },\n            });\n          }\n          const transferPreviewPath = transferId\n            ? `/api/companies${companyImportTransferPreviewPath(transferId)}`\n            : null;\n\n          let selectedFiles: string[] | undefined;\n          if (interactiveView && !opts.yes && !opts.include?.trim()) {\n            const initialPreview = transferPreviewPath\n              ? await ctx.api.post<CompanyPortabilityPreviewResult>(transferPreviewPath, transferMeta)\n              : await ctx.api.post<CompanyPortabilityPreviewResult>(previewApiPath, {\n                  source: sourcePayload,\n                  ...transferMeta,\n                });\n            if (!initialPreview) {\n              throw new Error(\"Import preview returned no data.\");\n            }\n            selectedFiles = await promptForImportSelection(initialPreview);\n          }\n\n          const previewPayload = {\n            source: sourcePayload,\n            ...transferMeta,\n            selectedFiles,\n          };\n          const preview = transferPreviewPath\n            ? await ctx.api.post<CompanyPortabilityPreviewResult>(transferPreviewPath, {\n                ...transferMeta,\n                selectedFiles,\n              })\n            : await ctx.api.post<CompanyPortabilityPreviewResult>(previewApiPath, previewPayload);\n          if (!preview) {\n            throw new Error(\"Import preview returned no data.\");\n          }","sourceCodeStart":1762,"sourceCodeEnd":1798,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/company.ts#L1762-L1798","documentation":"The import preview POST (transfer or inline) resolved to a falsy body, so the command cannot render what would be imported; a sentinel guard on a missing API response.","triggerScenarios":"Thrown at cli/src/commands/client/company.ts:1780 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the preview; if it persists, verify the source is valid and the server is reachable."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}