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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • What's the value of "Gender_id" in "civicrm_contact" table?
Pages: [1]

Author Topic: What's the value of "Gender_id" in "civicrm_contact" table?  (Read 1896 times)

anyegongjue

  • Guest
What's the value of "Gender_id" in "civicrm_contact" table?
October 29, 2008, 11:02:45 pm
Hi there,

I am using CiviCRM 2.1.1 standalone version.

I modify the import function. When I load a csv file with the value "0" and "1" for "male" and "female", I get the error "Invalid value for field(s) : Gender".

I check the comment of the DB. It says the type of field "gender_id" is "integer". So I think the value of "0" and "1" for this field should be fine. I have no idea why this happened.

If anyone can help me with this, that will be great!

Thanks!!!

anyegongjue

  • Guest
Re: What's the value of "Gender_id" in "civicrm_contact" table?
October 29, 2008, 11:31:56 pm
I check the demo program online. It use "1" for Female, "2" for male. I make the change to my program. But the error is still there.

Is there anyone who can help me?  It just drives me crazy!

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: What's the value of "Gender_id" in "civicrm_contact" table?
October 30, 2008, 02:20:25 am
Sure

Male = Male

Female = Female

I strongly recommend that before doing an Import you create some Contacts and Export the fields you plan on importing. That way you can be sure you get the data format correct.

HTH
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • What's the value of "Gender_id" in "civicrm_contact" table?

This forum was archived on 2017-11-26.