{"record":{"id":"30dfcdeaefcbca1d","repo":"coollabsio/coolify","slug":"no-destination-available-for-imported-resource","errorCode":null,"errorMessage":"No destination available for imported resource.","messagePattern":"No destination available for imported resource\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Services/ServerTransfer/ServerTransferImporter.php","lineNumber":1586,"sourceCode":"\n        return $count;\n    }\n\n    /**\n     * @param  array<string, StandaloneDocker|SwarmDocker>  $destinationMap\n     */\n    private function resolveDestination(?string $uuid, array $destinationMap): StandaloneDocker|SwarmDocker\n    {\n        if ($uuid && isset($destinationMap[$uuid])) {\n            return $destinationMap[$uuid];\n        }\n\n        $first = reset($destinationMap);\n        if ($first instanceof StandaloneDocker || $first instanceof SwarmDocker) {\n            return $first;\n        }\n\n        throw new RuntimeException('No destination available for imported resource.');\n    }\n\n    /**\n     * @param  class-string  $modelClass\n     * @param  array<string, mixed>  $attributes\n     * @return array<string, mixed>\n     */\n    private function onlyExistingColumns(string $modelClass, array $attributes): array\n    {\n        /** @var Model $model */\n        $model = new $modelClass;\n        $columns = Schema::getColumnListing($model->getTable());\n\n        return collect($attributes)\n            ->only($columns)\n            ->all();\n    }\n}","sourceCodeStart":1568,"sourceCodeEnd":1604,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Services/ServerTransfer/ServerTransferImporter.php#L1568-L1604","documentation":"Error \"No destination available for imported resource.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Services/ServerTransfer/ServerTransferImporter.php:1586 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}