Server responded with an error.

I migrate a SilverStripe 4.1.2 project into 4.7.0. After migration, it gives the "Server responded with an error. HashFileIDHelper::buildFileID requires an $hash value." error when goto the Files tab on the Admin side. Is anyone knows the reason for this error?

Thank you.

Did you run any of the file migration tasks (in /dev/tasks). You might need to do that to generate the file hashes

I already tried the MigrateFileTask. However it gives the following log
Can not migrate Uploads/Front-v2.jpg / e325a47d8097a29a201581fc093eca356beb9fa4 because it does not exist on the “draft” stage [] []