Closed (fixed)
Project:
Migrate
Version:
7.x-2.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2015 at 03:18 UTC
Updated:
19 Jun 2015 at 20:04 UTC
Jump to comment: Most recent
Hi there,
I'm working with a csv file as source; but the field that is used as sourceid sometimes have a duplicate record; so it doesn't import again. That's ok; but my problem is because if it gives me unprocessed rows. Since I have other migrations depending on the first one; they don't get executed due to these unprocessed rows.
Example:
- I have a file with ten rows; but 2 of them are duplicated (I can't verify this file before because client is the person who is going to upload that file through a custom UI).
- When that file gets imported it says that 1 row is unprocessed.
- Any dependent migration doesn't get executed due to the unprocessed row.
Any idea how could I fix this?
Comments
Comment #1
mikeryanOf course, the ideal thing to do is to fix the source data, but you knew that...
Use the --force option on the drush mi command to skip checking of dependencies. Or, if running migrations in the UI, check the "Ignore dependencies" checkbox under Options.
Comment #2
kporras07 commentedThanks @mikeryan.
I finally created a source plugin extending from the migrate csv source class and implemented the computeCount function for avoiding the dupe rows to be counted.