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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Importing Error
Pages: [1]

Author Topic: Importing Error  (Read 2259 times)

honeyl

  • Guest
Importing Error
June 14, 2009, 01:15:17 pm
I'm importing some 300 member records, using the Contact ID from an earlier import. I've cleaned the data well and get clearance on step 3 of the member import process (no rows reporting errors), but when I do the final step, the system produces a non-recoverable error, with this message:

One of parameters (value: 0) is not of the type Timestamp

Any suggestions for troubleshooting?

Thanks in advance.


petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Importing Error
June 14, 2009, 09:03:55 pm
HI - you haven't listed the fields you are mapping to - i always recommend filling out a contact with all the fields - then exporting them with all fields so you can check that you are importing the right data type etc to the right field.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

honeyl

  • Guest
Re: Importing Error
June 15, 2009, 04:33:02 am
Quote from: peterd on June 14, 2009, 09:03:55 pm
HI - you haven't listed the fields you are mapping to - i always recommend filling out a contact with all the fields - then exporting them with all fields so you can check that you are importing the right data type etc to the right field.

Hi Peter,

I'm mapping to Contact ID, to match contacts earlier imported, as well as these Membership fields:

  * Membership Start Date
  * Membership Expiration Date
  * Join Date
  * Membership Type

as well as these custom data fields:

  * Membership Notes (text)
  * Magazine Subscription (yes or no)
  * Three fields for three past years of past check numbers (integer)
  * Three fields for three past years of check amounts (money)
  * Three fields for three past years of transaction dates (date)

We need to keep these past three years of data as a non-profit.

When I run the import, it imports one member for the regular membership fields, using the Contact ID to pull in the name and link it to the contact. But all of the custom data fields for this one member are blank, and no other members are imported. So I know it's somewhere in the custom data fields.

I read on another forum post that blank values for custom data fields will generate this same error warning (though this was supposed to be fixed in an earlier version), so I filled blank cells of the CSV with zeros, and placed a 1991 date for the empty date fields.

I plan to try importing all fields *without* the custom data to rule out other possibilities, but I was wondering if others had any insight into this problem. Any help would be greatly appreciated.


honeyl

  • Guest
Re: Importing Error
June 15, 2009, 05:07:43 am
Peter,

One quick question. When creating a Yes/No field, should you put 0/1 s in the CSV file, or just Yes/No. I had Yes/No.

At any rate, I left out the past three year date and the Yes/No field, and I was able to import all of the members except two, so I think I scored a victory of sorts. I'd still like to get those dates and the yes/no in the database though, without having to retype.

Thanks.

honeyl

  • Guest
Re: Importing Error
June 15, 2009, 07:03:39 am
Quote from: honeyl on June 15, 2009, 05:07:43 am
At any rate, I left out the past three year date and the Yes/No field, and I was able to import all of the members except two, so I think I scored a victory of sorts. I'd still like to get those dates and the yes/no in the database though, without having to retype.

Well, that victory was short-lived. I was able to import 304 of the records, but none of them had the correct dates for the given Membership date fields. I found some hard returns in the custom "Memberhship Notes" field (text) of the CSV file, but even after eliminating them, I'm getting the same problem. I'm matching up the fields correctly, I'm just have some problem with the import reading the data wrong.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Importing Error
June 15, 2009, 12:29:45 pm
Hi

Quote
i always recommend filling out a contact with all the fields - then exporting them with all fields so you can check that you are importing the right data type etc to the right field.

Have you done this? If you have you will know if it requires 0/1 or Yes/No

Are you importing the Contacts http://drupal.demo.civicrm.org/civicrm/import?reset=1 and then importing the Memberships separately via http://drupal.demo.civicrm.org/civicrm/member/import?reset=1?

Have you read the chapter in the Manual - http://en.flossmanuals.net/CiviCRM/ContactsAddingAndImporting

It sounds like you may be sidestepping the core functions of CiviMember and CiviContribute if you are importing the following as Custom Data

* Three fields for three past years of past check numbers (integer)
  * Three fields for three past years of check amounts (money)
  * Three fields for three past years of transaction dates (date)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

honeyl

  • Guest
Re: Importing Error
June 16, 2009, 05:10:29 am
Quote from: peterd on June 15, 2009, 12:29:45 pm

Have you done this? If you have you will know if it requires 0/1 or Yes/No


Peter,

Thanks for responding so quickly. No, I haven't done it yet, but that's my next step. I see the wisdom of your suggestion.

Quote

Are you importing the Contacts http://drupal.demo.civicrm.org/civicrm/import?reset=1 and then importing the Memberships separately via http://drupal.demo.civicrm.org/civicrm/member/import?reset=1?


Yes, I first imported Contacts, then exported back out to grab the Contact IDs. Copied those over to the Membership import CSV after matching line-by-line by name across the Contact export and Membership import files. This process, by the way, isn't covered in most of the documentation that I've seen.

Quote
Have you read the chapter in the Manual - http://en.flossmanuals.net/CiviCRM/ContactsAddingAndImporting

Yep. Great manual, but it doesn't cover importing memberships, only contacts.

Quote
It sounds like you may be sidestepping the core functions of CiviMember and CiviContribute if you are importing the following as Custom Data

* Three fields for three past years of past check numbers (integer)
  * Three fields for three past years of check amounts (money)
  * Three fields for three past years of transaction dates (date)

I know that the Membership module's core functions track amounts, check numbers, and dates, but I thought these functions covered only currents years. If that's untrue, it's not at all clear to me how to import *past* years of this data into the core function. If you've got any suggestions, I'd be very grateful for your advice.

BTW, I teach technical communication at the university level and would be willing to contribute to the online documentation after I've worked through this process. So if you help me out, I'll feed the results back to the community.

Thanks.

honeyl

  • Guest
Re: Importing Error
June 16, 2009, 06:09:58 am
Quote from: peterd on June 15, 2009, 12:29:45 pm
Hi

Quote
i always recommend filling out a contact with all the fields - then exporting them with all fields so you can check that you are importing the right data type etc to the right field.

Have you done this? If you have you will know if it requires 0/1 or Yes/No


OK, I filled out all of the membership information for a single record, both core and custom data, and exported it. To answer the above question, Yes/No fields require just Yes or No. But something weird happened that I think explains some of my earlier problems, though I won't be able to test it until later.

The core membership dates of Member Since, Membership Start Date, and Membership Expiration Date are exported in the following format: yyyy-mm-dd while those date fields established as custom data were exported as "January 1st, 2009." I suspect this was causing my earlier non-recoverable error.

Will be off line for the next several days, but will check this out when I get back.

-- Lee

synchlayer

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
Re: Importing Error
July 23, 2009, 07:02:06 pm
I've been having the same problem as honeyl: I can import contacts (custom fields and all) but then when I import memberships through CiviMember everything looks fine until I click "Import Now >>" on Step 3 of 4.

At that point the aforementioned  screen appears:


Sorry. A non-recoverable error has occurred.

One of parameters (value: 0) is not of the type Timestamp

Return to home page.


I've discovered that the first contact always gets their member info correctly imported, and if I try again it will be imported again, but it never works for any of the others no matter how many I try to import at once. I checked and this even happens if I only try to upload one member at a time - I get the error message but that member's info gets added nonetheless.

As it stands I'm prepared to just enter everyone manually because it might actually take less time, as this first happened a month ago, and I waited for the new Civi release to see if it would be resolved but to no avail.

Any help will be muchly appreciated, thanks
Craig


honeyl

  • Guest
Re: Importing Error
July 24, 2009, 02:14:35 am
Quote from: synchlayer on July 23, 2009, 07:02:06 pm
At that point the aforementioned  screen appears:


Sorry. A non-recoverable error has occurred.

One of parameters (value: 0) is not of the type Timestamp


Craig,

You could certainly enter the records one at a time by hand, but in our case, we had some 600 records, and I couldn't see the advantage in that, even though it took me a lot of time to get our imports to work properly.

In our situation, the custom data dates were the problem, and since these dates were only legacy information that was only being stored and not actively used going forward, I just converted that field from a date field to alphanumeric. But it does seem odd that the core date format would be one way and the custom data date format another. I hope there are plans to correct this in a future release.

Good luck.

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: Importing Error
July 24, 2009, 07:48:17 am

can you reproduce this error on demo. If so can you please give us steps to reproduce it and also attach a small version of the csv file you used to do so

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

synchlayer

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
Re: Importing Error
July 24, 2009, 11:55:12 am
Thanks for the suggestions honeyl I'll try changing the legacy dates, but most of the dates are active information, and it will still be good to keep them all as actual dates to avoid future issues.

And Donald, if I were to recreate this for the demo site would I have to recreate all the custom fields, for both Contacts and members?  I'll try that next week as it'll take a while to do.

Cheers
Craig

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: Importing Error
July 24, 2009, 02:16:10 pm

can u do your import with a minimal set of just the core fields and see if its still an issue? that way we can isolate it to core field or custom field issues :)

also seems like there might be an issue with some of your date formats (from the osbscure error message), so i would take another look at the dates

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

synchlayer

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
Re: Importing Error
July 27, 2009, 05:26:22 pm
Ok, so after testing this out on the demo site and then on mine, I've resolved the issue but still don't understand it.

I created two custom fields to record renewal legacy dates which I tried to Import in CiviMember as that made most sense (at least as much as needing to do multiple imports does).  As soon as I stopped using those fields the import worked.  I then recreated those fields in the Contact Import and there wasn't an issue.

So I can now begin to import my data, albeit with some of the membership info in a slightly different place, thanks for the help Honeyl and Donald.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Importing Error

This forum was archived on 2017-11-26.