Field validation error on nodereference field during D6 to D7 migration I'm migrating a D6 site to D7.

There are several content types that have cck noderefenrce fields that use referenced views for content types that can be referenced.

When I run the migration, I get a field validation error:


  Field validation error for field: field name: this post can't be referenced.


In the CLI, I've used --user=1 to see if it was a permissions problem, but no luck.

Has anyone experienced this? Any hints or suggestions?
It doesn't look like there's support for migrating nodereference fields in D2D migrate. You'll need to write a custom migrate class. In general, I haven't had much luck with the D2D GUI; it's only useful for super-simple migrations. 

Writing a custom migration class (especially if you're using migrate_d2d) is really quite easy to do and a worthy exercise. Take a look at the migrate_d2d_example code. The nice thing is that migrate keeps track of the mapping between the old NIDs and the new so that you need only write one line of code in your constructor to ensure the reference field has the right value.

See: Migrate D6 node reference to D7 entityreference