Anyone know what it means when you get this error with the Node Import Module:

in the preview import screen I get this error above all record previews:

"An illegal choice has been detected. Please contact the site administrator."

And I get this error in the dblog in the admin area:

"Illegal choice 0 in Publish to element."

Any ideas?

Comments

Robrecht Jacques’s picture

What module adds the "publish to element" ? Is it a CCK field with options?

The reason for the illegal choice is that the value submitted (0) is not a choice in a select list, checkboxes or radio buttons form element. The internal form validation fails when submitting the values.

jeremyr’s picture

I'm not sure, maybe I'll look around the data base to see if I can find a column with a similar title. Anyone have any ideas?

Robrecht Jacques’s picture

If you go to the content edit page (node/add/story for example), you should see an element called "Publish to".

jeremyr’s picture

Oh, that makes sense now, that's the domain access module. however I don't see where I can provide an option or map it in the import wizard.

Robrecht Jacques’s picture

Copy the attachment of http://drupal.org/node/391772 in sites/all/modules/node_import/supported/domain/domain.inc (creating a new directory).

jeremyr’s picture

It worked! Thanks for your help.

Robrecht Jacques’s picture

Status: Active » Closed (duplicate)

Well, I'll set it as a duplicate of http://drupal.org/node/391772 then.

That patch will be included in -rc5.