Error with "Remove dupes from the log"

1 post / 0 new
Error with "Remove dupes from the log"

I got this error when trying to remove dupes from the log:
ERROR: : Error executing query: Cannot truncate a table referenced in a foreign key constraint (`cqrlog001`.`log_changes`, CONSTRAINT `log_changes_ibfk_1` FOREIGN KEY (`id_cqrlog_main`) REFERENCES `cqrlog001`.`cqrlog_main` (`id_cqrlog_main`))
Dupes will not be removed.
The problem is the log from wsjt-x. wsjt-x is using his own Log "wsjt-x_log.adi" for checking for worked Callsigns and Countrys. So it's not a good idea to delete this log after using it for importing qso into cqrlog.
So i produce dupes every time when i import the wsjt-x log.  Or is there a better way of interacting between these two progams?
73 de Heinz-Juergen   DO1YHJ