Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
migration system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 May 2018 at 13:48 UTC
Updated:
27 Dec 2018 at 18:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pieterjanput commentedCorrect me if i'm wrong, but I think this is fixed in 2225587.
https://www.drupal.org/project/drupal/issues/2225587#comment-12565134
Comment #3
quietone commented@PieterJanPut, this isn't fixed yet.
Comment #5
zuhair_akThe code right now in 8.7.x is
This had the source IDs. So we should add which migration is involved?
Comment #6
joachim commentedWhich migration, and which mapping.
Come to think of it, we should probably file an issue to make this standard in all processor exceptions.
Comment #7
rupertj commentedI just ran into this message while writing a migration. I had to google it to understand what it was trying to tell me, and I still didn't understand what was wrong until I set a breakpoint on where the exception was thrown and stepped through the code.
The addition of migration and mapping sounds like a good improvement. The message I got said: "Extra unknown items in source IDs: array (0 => '[redacted string value]')". Which wasn't helpful at all.
I also found the phrase "Extra unknown items" confusing. Are some unknown items ok, but it's just these extra ones that are an issue? I initially thought this was something to do with the creation of stubs due to this wording.
Comment #8
RumyanaRuseva commentedHere is a patch for adding the migration map table name. That should help the developers find which element of the migration has unexpected source values.
Comment #10
mitrpaka commentedThanks @RumyanaRuseva for the patch. Just fixed failing test.
Comment #11
heddnThis looks fine to me. Tests are passing and more context is being passed in the exception.
Comment #12
ekes commented+1 RTBC
Just applied this one, and saved me setting a breakpoint, and gave the data that I was able to find the incorrect migrate field in my migration directly.
Comment #13
alexpottCrediting @joachim for creating and reviewing the issue.
Committed and pushed aa577bef92 to 8.7.x and 30d14f9c2e to 8.6.x. Thanks!