Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/Service/Import/Importers/TogglDataImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ public function importData(string $data, string $timezone): void
if ($project->client_id !== null) {
$clientId = $this->clientImportHelper->getKeyByExternalIdentifier((string) $project->client_id);
if ($clientId === null) {
throw new Exception('Client does not exist');
// Client was deleted in Toggl but still referenced by a project — skip gracefully
Log::warning('TogglDataImporter: Project references a non-existent client, importing without client', [
'project_name' => $project->name,
'client_id' => $project->client_id,
]);
}
}

Expand Down