diff --git a/votingapi.inc b/votingapi.inc
index 703df55..43f6fdb 100644
--- a/votingapi.inc
+++ b/votingapi.inc
@@ -63,6 +63,12 @@ class MigrateDestinationVotingapi extends MigrateDestination {
   public function import(stdClass $entity, stdClass $row) {
     $this->prepare($entity, $row);
 
+    // Votes have to be assigned to an entity.
+    if (empty($entity->entity_id)) {
+      watchdog('VotingAPI Import', 'Skipped import due to empty entity_id for vote import: @serial', array('@serial' => json_encode($row)), WATCHDOG_ERROR);
+      return FALSE;
+    }
+
     if (isset($entity->timestamp)) {
       $entity->timestamp = Migration::timestamp($entity->timestamp);
     }
