Server responded with an error.

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

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 [] []