paperclipai/paperclip · info

Import cancelled.

Error message

Import cancelled.

What it means

Informational warning from the paperclipai company-import command. The apply step only runs after a clack p.confirm prompt; when the user answers 'N' or cancels (p.isCancel), the CLI logs 'Import cancelled.' and returns before any POST to the import apply endpoint. No mutation was applied — only the preview request ran.

Source

Thrown at cli/src/commands/client/company.ts:1842

                targetLabel: formatTargetLabel(targetPayload, preview),
                infoMessages: adapterMessages,
              }),
              { interactive: interactiveView },
            );
          }

          const confirmationMode = resolveCompanyImportApplyConfirmationMode({
            yes: opts.yes,
            interactive: interactiveView,
            json: ctx.json,
          });
          if (confirmationMode === "prompt") {
            const confirmed = await p.confirm({
              message: "Apply this import? (y/N)",
              initialValue: false,
            });
            if (p.isCancel(confirmed) || !confirmed) {
              p.log.warn("Import cancelled.");
              return;
            }
          }

          const importApiPath = resolveCompanyImportApiPath({
            dryRun: false,
            targetMode: targetPayload.mode,
            companyId: targetPayload.mode === "existing_company" ? targetPayload.companyId : null,
          });
          const imported = transferId
            ? await ctx.api.post<CompanyPortabilityImportResult>(
                `/api/companies${companyImportTransferApplyPath(transferId)}`,
                { ...transferMeta, selectedFiles, adapterOverrides },
              )
            : await ctx.api.post<CompanyPortabilityImportResult>(importApiPath, {
                ...previewPayload,
                adapterOverrides,
              });

View on GitHub (pinned to 120ae5428f)

Solutions

  1. Re-run the import command and answer 'y' at the prompt to apply.
  2. For automation, pass --yes (or run with --json, where the prompt is skipped) so confirmationMode is not 'prompt'.
Defensive patterns

Strategy: validation

Prevention

When it happens

Trigger: Running `paperclipai company import ...` in interactive mode (confirmationMode === "prompt", i.e. no --yes, TTY present, non-JSON), then declining or Ctrl-C cancelling at the 'Apply this import? (y/N)' prompt.

Common situations: User reviews the rendered import preview and decides against applying; a script runs the command without --yes in a TTY and gets the prompt; accidental Escape/Ctrl-C during the prompt.

Related errors


AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18). Data as JSON: /api/errors/46d8476d034e15ab. Report an issue: GitHub.