diff --git a/votingapi.inc b/votingapi.inc
index 7765686..64ddf24 100644
--- a/votingapi.inc
+++ b/votingapi.inc
@@ -78,12 +78,15 @@ class MigrateDestinationVotingapi extends MigrateDestination {
     $vote['timestamp'] = $entity->timestamp;
     $vote['vote_source'] = $entity->vote_source;
     votingapi_add_votes($vote);
-    $this->complete($entity, $row);
-
-    if ($entity->vote_id) {
+    if (isset($vote[0]['vote_id'])) {
+      $entity->vote_id = $vote[0]['vote_id'];
+      $this->complete($entity, $row);
       $this->importedIds[$entity->entity_type][] = $entity->entity_id;
       return array($entity->vote_id);
     }
+    else {
+      return FALSE;
+    }
   }
 
   /**
