I have a great quantity of Contact to import in CiviCRM and I absolutely need to increase the actual 3MB limit to, at least, 150 MB, with a view to fit my needs.
Many thanks for the help!
Regards
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.
Sign up to join this communityI have a great quantity of Contact to import in CiviCRM and I absolutely need to increase the actual 3MB limit to, at least, 150 MB, with a view to fit my needs.
Many thanks for the help!
Regards
The size limit that is an issue is on your webserver php configuration, usually under /etc/php5 on linux
However and by experience, importing a lot of contacts via the web interface is painful. it will time out, you will need to restart and do the mapping of columns->fields, go through the wizard, wonder where it got stuck, see that civi expects "GB" and not "UK" or whatever...
It's much better to write a simple cli script that uses the api to import them, it's going to be easier to run again if needed and way faster.
importing 1.5 million organisations is definitely something you want to do from the cli if you value your time, and care about your mental health.
check out the api explorer, it will generate you the code needed to import a contact
$result = civicrm_api3('Contact', 'create', array(
'sequential' => 1,
'contact_type' => "Organization",
'organization_name' => "bla",
'api.Address.create' => array('country' => "FR", 'city' => "Paris"),
));
wrap that with your loop reading your csv and you're good to go ;)
I'm guessing 3Mo in some non-English language means 3MB...
The upload limit is under Administer > System Settings > Misc. That cannot be larger than the maximum file size in your php.ini so you will need to increase that as well.
But whatever file sizes you configure there, things are unlikely to work well trying to import a single 150MB file.
Does your 150MB figure relate just to name/address/email/phone information, or is that other data as well?
If it has other data, you will need to prepare separate files for importing basic contact data, contributions, memberships, activities etc so your actual import files will be smaller.
You can import multiple files of each type - it does not need to be a single import.
Importing via the web pages works well enough for small data sets but there are other approaches that you might want to look at it if the data is large. How many contacts do you have?
First, change file upload size to 150 MB in the php.ini file and then, try to increase upload size through the CiviCRM(The upload limit is under Administer > System Settings > Misc > Maximum File Size (in MB)).