CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Problem importing dates
Pages: [1]

Author Topic: Problem importing dates  (Read 808 times)

Steve@ASU

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.51a-community-log
  • PHP version: 5.2.17
Problem importing dates
June 05, 2012, 05:33:25 pm
I'm trying to import a CSV file through the Import Contacts feature. The CSV file includes two custom date fields - Start & Stop Dates.

Whenever I try to import the file, fields with dates in those fields get flagged as "Invalid value for field(s)."

Plus I get error messages for each row with dates that says:
 "warning: preg_match() expects parameter 2 to be string, array given in
/<my home page>/sites/all/modules/civicrm/CRM/Utils/Date.php on line 473."

I've tried a number of different date formats to no avail.

Any suggestions?

I'm using CiviCRM 4.1.2 in a Drupal 6 website.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problem importing dates
June 05, 2012, 06:58:52 pm

Can you reproduce this error on our demo server with a small test file and save the mapping.

Once done, can you please attach the csv file to this topic

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Steve@ASU

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.51a-community-log
  • PHP version: 5.2.17
Re: Problem importing dates
June 06, 2012, 09:47:17 am
I can't do anything on the demo site for Drupal 6. I keep getting an "Unrecoverable" error message whenever I try to go to any screen. Who do I report that to?

Steve
« Last Edit: June 06, 2012, 10:06:51 am by Steve@ASU »

Steve@ASU

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.51a-community-log
  • PHP version: 5.2.17
Re: Problem importing dates
June 10, 2012, 09:15:12 am
I have created the Custom Fields on the demo site, and attempted to import a CSV file. Had the same results. No joy.

The mapping has also been saved on the demo site as "Address Info Import Test."

The CSV test file is attached.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Problem importing dates

This forum was archived on 2017-11-26.