Hi.

I am successfully using this module to perform automatic import of users and nodeprofiles from a CSV file on cron run. Besides, found that this module doesn't support checkbox and select list field types.

Is there a way to make them supported?

Both field types are CCK fields with "multiple" option disabled.

Comments

robert castelo’s picture

Note: User Import uses Node Import module's CCK support file to import data to CCK, so would be worth checking support for that module as well.

ivrh’s picture

Assigned: Unassigned » ivrh

The problem is with non-text type fields.

The solution is to temporarily convert those non-text fields into text type, do the import and convert them back to original state.

I have created two functions to do this:
one converts those non-text type fields into 'text'
another restores it's original type.

The problem I encounter so far:
I logically assumed that placing function 1 at the beginning of hook_cron() and the function 2 at the end of hook_cron() will do the job, but it doesn't.

Assuming that both my functions do what they suppose to do - what entry and exit points should be within user_import.module or node_import.module to do the job?

I am looking for someone to help me do this bit.

robert castelo’s picture

Ivan, sounds like cron is timing out before it reaches your function to switch fields back.

You could try reducing the number of users imported per cron, there's an option for that in User Import configuration page.

ivrh’s picture

Hi, Robert.

No, it is not.

I have my functions reporting on success or failure. They do convert fields to 'text' and back to original state fine. I'm trying to import one user (for testing) - one line.

Still no luck with those non-text fields. Still the same feeling like hook_cron() is wrong place for this, despite to me it is most logical to have them there.

robert castelo’s picture

Status: Active » Closed (duplicate)

Merging this issue with:

http://drupal.org/node/271406