- Issue created by @dcine
- 🇪🇸Spain dcine
Updated:
From what it seems, the error appears when adding a sort order by vote date. Any help, please? If this order criterion is not added, the votes are not duplicated. It's quite strange... - 🇪🇸Spain dcine
Resolved. I leave the small solution here in case it could be useful to any other user: Apparently, the problem was in the migration and the different versions of "Voting API". While I was migrating from Drupal 7 to Drupal 10, I added several patches to the module and this caused some type of error that forced me to delete the migration of the votes and migrate them again. The deletion seems to have not worked and, in some way that I don't know, the same votes were duplicated with different IDs. When creating the view and adding a sort order, the error was evident. To solve this I have deleted the votes through phpmyadmin and I have migrated the vote table again (migrate:import d7_vote:node:…) and now everything is back to normal.