In migrate/plugins/destinations/poll.inc at public function complete()
To avoid duplication messages related to primary keys in the table poll_vote I changed

db_insert('poll_vote')
  ->fields(array(
    'chid' => $chid,
    'nid' => $entity->nid,
    'uid' => $vote['uid'],
    'hostname' => $vote['hostname'],
    'timestamp' => $vote['timestamp'],
  ))
  ->execute();

Into

$migration = Migration::currentMigration();
try {
  db_insert('poll_vote')
    ->fields(array(
       'chid' => $chid,
       'nid' => $entity->nid,
       'uid' => $vote['uid'],
       'hostname' => $vote['hostname'],
       'timestamp' => $vote['timestamp'],
     ))
     ->execute();
 } catch (Exception $e) {
   // If we catch any errors here, save the messages.
   $migration->saveMessage($e->getMessage());
 }

Comments

brice_gato’s picture

Issue summary: View changes
brice_gato’s picture

Issue summary: View changes
brice_gato’s picture

Status: Active » Needs work
mikeryan’s picture

Please submit a patch. Also, please use saveMessage() (see exception handlers in other destination plugins for examples) rather than drupal_set_message().

brice_gato’s picture

Issue summary: View changes
brice_gato’s picture

brice_gato’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
brice_gato’s picture

Here is the correct patch ...

brice_gato’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
pifagor’s picture

Status: Needs work » Closed (outdated)