Integration with nodereference fields only works if nodereference field set to "select" widget

newmediaist - April 25, 2009 - 17:41
Project:Node import
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Even though a field may be set to "not required" in the node setup, node_import throws an error when you do not assign the field a value during import. Temporary work around is to create a new "blank" column in the import CSV, and then just set every "optional" location field to your blank column.

#1

newmediaist - April 28, 2009 - 15:50
Title:Node import ignores non-required location fields (Location module)» Integration with nodereference fields only works if nodereference field set to "select" widget

pasted two bug reports in one msg by mistake - here is what the above msg should have said:

When trying to import into a nodereference field which is set as a text (auto-complete) widget, node-import throws an errors. Change the nodereference field widget into a select box, and node-import is able to import into the field fine.

#2

Aren Cambre - June 17, 2009 - 20:31

subscribe. This is eerily similar to #374346: Can't import date values into Date module fields where the solution is the same: use select list.

#3

Junro - July 12, 2009 - 00:31

same problem, subscribe :)

#4

wilgrace - August 29, 2009 - 23:31

Is this true? To import into nodereference the widget has to be a select box? I don't think that's working for me

Or does the entry in the CSV file have to reference the node ID, not the name?

#5

Junro - August 29, 2009 - 23:37

Yep, it's true...

You have to use the reference name... it doesn't work with the ID.

and what about nodes with same name? Don't ask... lol I should experiment this soon..

#6

wilgrace - August 30, 2009 - 08:51

Hm, I can't get this to work - I'm using a Select Box widget for the CCK nodereference field, and then in the CSV import I have the full name of the node to be referenced. Not working at all.

I've also tried this solution: http://drupal.org/node/288185
but that's not working either, as per the last comment.

Would be great to get nodereference working... Any other ideas?

#7

vamosamorir2 - September 2, 2009 - 20:50

same problem same solution . It's great ¡

#8

wilgrace - September 3, 2009 - 13:49

You got this working using the Select Box and reference name? Hm, maybe a problem in my CSV file if it's working for others...

#9

drubytue - October 29, 2009 - 19:27

Neither select nor autocomplete works for me. Importing records with node reference fields is critical for my application. Is there any progress on this?

#10

morningtime - November 10, 2009 - 10:36

Setting node ref to select box, instead of autocomplete, fixed my problem -- using the latest dev version.

#11

drubytue - November 11, 2009 - 18:00

The select box solution now works for me, too. Still hoping RC5 will support autocomplete.

#12

David Lesieur - November 13, 2009 - 01:17
 
 

Drupal is a registered trademark of Dries Buytaert.