I’ve tried several different ways to import a CSV file, and i can’t get it to work, even if the file has only one record (see attached data file).
Here’s my import template:
{exp:csvgrab url="/var/www/html/cms/import/azlist_contact_list.txt"
weblog="54"
title="1"
skip="6"
delimiter="COMMA"
encloser=""
trace="TRUE"
site_id="1"
author="1"
date="8"
use="2|3|4|5|6|7|9"
fields="azlist_contact_last_name|azlist_contact_email_address|azlist_contact_phone_number|azlist_contact_ucid|azlist_contact_contact_id|azlist_contact_owner_id|azlist_contact_in_directory"
}
The results when I load the template:
TRACE: Array ( [title] => Array ( [is_custom] => 0 [field] => 1 ) [date] => Array ( [is_custom] => 0 [field] => 8 ) [azlist_contact_last_name] => Array ( [is_custom] => 1 [field] => 2 [id] => 208 [format] => none ) [azlist_contact_email_address] => Array ( [is_custom] => 1 [field] => 3 [id] => 202 [format] => none ) [azlist_contact_phone_number] => Array ( [is_custom] => 1 [field] => 4 [id] => 203 [format] => none ) [azlist_contact_ucid] => Array ( [is_custom] => 1 [field] => 5 [id] => 206 [format] => none ) [azlist_contact_contact_id] => Array ( [is_custom] => 1 [field] => 6 [id] => 213 [format] => none ) [azlist_contact_owner_id] => Array ( [is_custom] => 1 [field] => 7 [id] => 214 [format] => none ) [azlist_contact_in_directory] => Array ( [is_custom] => 1 [field] => 9 [id] => 215 [format] => none ) )
TRACE: Resource id #54
Is there an example of a working import file I could follow?
Thanks.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.