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) »
  • Profile fields not updated when contact imported (some contacts are updated).
Pages: [1]

Author Topic: Profile fields not updated when contact imported (some contacts are updated).  (Read 721 times)

encircle

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5.3
Profile fields not updated when contact imported (some contacts are updated).
March 24, 2014, 08:19:27 am
CiviCRM 4.2.4 with Drupal 6.

I'm trying to import some profile fields to Individuals, using the contact id as the identifier. Only 183 contacts get updated when I import a batch of 1,000 records. I've selected just a single contact to reproduce the problem and try to get to the bottom of things.

The confirmation screen shows 1 row and 1 record updated or created, but the number of tags assigned is zero and the profile fields are not updated. Screen shot attached.

The contact has a current membership, and I can manually edit the profile fields through the GUI.

Am I missing something here? I enabled debugging and checked all other logs, but nothing is reported.

Any pointers, much appreciated.

« Last Edit: March 24, 2014, 08:21:23 am by encircle »

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Profile fields not updated when contact imported (some contacts are updated).
March 24, 2014, 10:02:10 am
Hi, are you aware that CiviCRM requires regular maintenance and updates in order to remain reliable and secure?  I curious if anyone ever told you this.  For instance, your version 4.2.4 is over a year old and it not the latest in the 4.2 series - 4.2.16 is.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: Profile fields not updated when contact imported (some contacts are updated).
March 24, 2014, 12:35:31 pm
hey encircle

Can you explain what you mean by 'profile field' since it doesn't make sense in civi speak in this situation.

Custom Fields can be used in Profiles. Data can be imported in to Custom Fields. Data is not strictly speaking imported to 'profiles'

Second - are you importing Contact Data or Membership Data? If the latter, are you doing this as a Membership Import or a Contact Import?

Third - can you attach an example of the import?

Hopefully someone can point you in the right direction given the above
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

encircle

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5.3
Re: Profile fields not updated when contact imported (some contacts are updated).
March 25, 2014, 06:48:29 am
We have just taken over support for the site and are in the process of upgrading. I was hoping for a workaround.

Pete, these are 2 custom option fields in a profile with text values of Yes and No. No dates or anything complex. First colum of the csv has the contact id.

Is there anyway to debug the import script easily through configuration?



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: Profile fields not updated when contact imported (some contacts are updated).
March 25, 2014, 11:53:08 am
Quote from: petednz on March 24, 2014, 12:35:31 pm
hey encircle

Can you explain what you mean by 'profile field' since it doesn't make sense in civi speak in this situation.

Custom Fields can be used in Profiles. Data can be imported in to Custom Fields. Data is not strictly speaking imported to 'profiles'

Second - are you importing Contact Data or Membership Data? If the latter, are you doing this as a Membership Import or a Contact Import?

Third - can you attach an example of the import?

Hopefully someone can point you in the right direction given the above

i don't feel you answered any of the above
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

encircle

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5.3
Re: Profile fields not updated when contact imported (some contacts are updated).
March 26, 2014, 05:02:11 am
Sorry, Pete. You're right - I didn't answer your questions... We've upgraded our test environment and the bug has gone, so rather than try and work out why this is happening we are focusing on testing the latest release against our Drupal 6 site.

But to clarify things...

1) Can you explain what you mean by 'profile field' since it doesn't make sense in civi speak in this situation.
A: "profile field" means a Custom Field which has been added to a Profile.

2) Custom Fields can be used in Profiles. Data can be imported in to Custom Fields. Data is not strictly speaking imported to 'profiles'
A: I understand.

3) Second - are you importing Contact Data or Membership Data? If the latter, are you doing this as a Membership Import or a Contact Import?
A: We are importing contact data, to a profile available to all Contact Types, but in this case we are importing to an Individual.

4) Third - can you attach an example of the import?
A: Example CSV attached.


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: Profile fields not updated when contact imported (some contacts are updated).
March 26, 2014, 12:23:55 pm
well if the bug is gone then I take it all is presumably good

"3) Second - are you importing Contact Data or Membership Data? If the latter, are you doing this as a Membership Import or a Contact Import?
A: We are importing contact data, to a profile available to all Contact Types, but in this case we are importing to an Individual."

but i would still content that you are not importing data 'to a profile' - you may be importing to 'a group of custom fields that is available to all Contact Types'. I am being picky because the right terminology is more likely to get the right help
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

encircle

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5.3
Re: Profile fields not updated when contact imported (some contacts are updated).
March 27, 2014, 04:42:45 am
Yes all is good now we are on the latest branch. Just waiting for UAT so we can release to the live site.

I thought that just saying that we are importing data into custom fields wouldn't give the whole picture, as the configuration settings of the profile seem to be a factor.

Thanks, Pete.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Profile fields not updated when contact imported (some contacts are updated).

This forum was archived on 2017-11-26.