tools/deleteSubmissions.php error

I’m running ojs
After running a php import (which failed)
I’m trying to delete the submissions with tools/deleteSubmissions.php and get the error below. It seems to only partially delete the submission. The tabs (unassigned, All Active, Archives) in the submissions section do not decrement their totals, but the submissions have disappeared from view.

PHP Fatal error: Uncaught Error: Call to a member function getUsername() on null in /var/www/sites/scancan/lib/pkp/classes/services/
Stack trace:
#0 /var/www/sites/scancan/lib/pkp/classes/submission/ PKP\Services\PKPSubmissionFileService->delete(Object(SubmissionFile))
#1 /var/www/sites/scancan/classes/submission/ PKPSubmissionDAO->deleteById(‘24’)
#2 /var/www/sites/scancan/tools/deleteSubmissions.php(56): SubmissionDAO->deleteById(‘24’)
#3 /var/www/sites/scancan/tools/deleteSubmissions.php(62): SubmissionDeletionTool->execute()