Assigning OG audience during import fails validation, producing the error: An illegal choice has been detected. Please contact the site administrator.
The symptom is the node preview looks like this:

    [og_groups] => Array
        (
            [5550] => 1
        )

whereas it would be correct like this

    [og_groups] => Array
        (
            [5550] => 5550
        )

This may be relevant only to OG 1.x, I'm not sure.

CommentFileSizeAuthor
#1 og.patch670 bytesalex.k
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex.k’s picture

Status: Active » Needs review
FileSize
670 bytes

Attached patch fixed it for me.

hurricane66’s picture

The patch in #1 solved the import fail experienced when OG audience was included with node data (message in the Drupal log is "An illegal choice has been detected. Please contact the site administrator.").
Our setup in short:
drupal 6.27
node import 6.x-1-1 (2011-mar-23)
og 6.x-2.1