If you have Pathauto enabled and are migrating paths to new nodes, you will sometimes have duplicate path aliases per node - because Pathauto will try to generate one, and the one you are migrating will be created. The solution is to set a flag on the nodes in hook_migrate_prepare_node (or just disable pathauto during migration)

$node->pathauto_perform_alias = false;

Comments

eiland’s picture

subscribe

mikeryan’s picture

Project: Migrate » Migrate Extras
Component: Code » Migrate Extras Features

Contrib module support should be implemented in the Migrate Extras module.

eiland’s picture

with me the issue was caused from http://drupal.org/node/269877

mikeryan’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Fixed

Exposed pathauto_perform_alias as a destination field in Migrate 2, so it can be set to 0 to suppress alias creation during migration.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.