diff --git a/contracts/management/commands/import_old_contracts.py b/contracts/management/commands/import_old_contracts.py
index 55dfbf6674dc590579b067dc08098656e72b01dd..d25d519f38c83a4b4dbe7058055500ea65a98d0c 100644
--- a/contracts/management/commands/import_old_contracts.py
+++ b/contracts/management/commands/import_old_contracts.py
@@ -1081,6 +1081,8 @@ class Command(BaseCommand):
 
                             continue
 
+                        at_least_one_incorrect_filename = False
+
                         for file_key, file_value in file_data.items():
                             file_key = file_key.strip()
 
@@ -1090,9 +1092,11 @@ class Command(BaseCommand):
                             if not isinstance(file_value, str):
                                 observed_issues_count += 1
                                 contract.notes += f"Špatně zadaný název souboru {file_key}: {file_value}.\n"
-                                issues.append(
-                                    self.use_issue("Neplatný název souboru")
-                                )
+
+                                if not at_least_one_incorrect_filename:
+                                    issues.append(
+                                        self.use_issue("Neplatný název souboru")
+                                    )
 
                                 if self.verbosity >= 2:
                                     self.stderr.write(
@@ -1101,6 +1105,8 @@ class Command(BaseCommand):
                                         )
                                     )
 
+                                at_least_one_incorrect_filename = True
+
                                 continue
 
                             file_path = os.path.join(contract_root, file_value)